diff --git a/val.py b/val.py index 6b709ce9ee43..7ce9a47ce36e 100644 --- a/val.py +++ b/val.py @@ -346,7 +346,7 @@ def main(opt): for i in x: # img-size print(f'\nRunning {f} point {i}...') r, _, t = run(opt.data, weights=w, batch_size=opt.batch_size, imgsz=i, conf_thres=opt.conf_thres, - iou_thres=opt.iou_thres, save_json=opt.save_json, plots=False) + iou_thres=opt.iou_thres, device=opt.device, save_json=opt.save_json, plots=False) y.append(r + t) # results and times np.savetxt(f, y, fmt='%10.4g') # save os.system('zip -r study.zip study_*.txt')