Skip to content

Commit

Permalink
Remove code commented out and extra '#' in comment (meituan#1012)
Browse files Browse the repository at this point in the history
  • Loading branch information
benicamera authored Mar 5, 2024
1 parent 87dd3d3 commit e86a483
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tools/eval.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ def get_args_parser(add_help=True):
args.shrink_size = eval_params[eval_model_name]["shrink_size"]
args.infer_on_rect = eval_params[eval_model_name]["infer_on_rect"]
#force params
#args.img_size = 640
args.conf_thres = 0.03
args.iou_thres = 0.65
args.task = "val"
Expand Down Expand Up @@ -138,7 +137,7 @@ def run(data,
half = device.type != 'cpu' and half
data = Evaler.reload_dataset(data, task) if isinstance(data, str) else data

# # verify imgsz is gs-multiple
# verify imgsz is gs-multiple
if specific_shape:
height = check_img_size(height, 32, floor=256)
width = check_img_size(width, 32, floor=256)
Expand Down

0 comments on commit e86a483

Please sign in to comment.