Fix missing opt.device on --task study (#5031)
This commit is contained in:
1 parent
cce7e78fae
commit
b0ade48457
1 file changed
+1
-1
@@ -335,7 +335,7 @@ def main(opt):
|
|||||||
elif opt.task == 'speed': # speed benchmarks
|
elif opt.task == 'speed': # speed benchmarks
|
||||||
for w in opt.weights if isinstance(opt.weights, list) else [opt.weights]:
|
for w in opt.weights if isinstance(opt.weights, list) else [opt.weights]:
|
||||||
run(opt.data, weights=w, batch_size=opt.batch_size, imgsz=opt.imgsz, conf_thres=.25, iou_thres=.45,
|
run(opt.data, weights=w, batch_size=opt.batch_size, imgsz=opt.imgsz, conf_thres=.25, iou_thres=.45,
|
||||||
save_json=False, plots=False)
|
device=opt.device, save_json=False, plots=False)
|
||||||
|
|
||||||
elif opt.task == 'study': # run over a range of settings and save/plot
|
elif opt.task == 'study': # run over a range of settings and save/plot
|
||||||
# python val.py --task study --data coco.yaml --iou 0.7 --weights yolov5s.pt yolov5m.pt yolov5l.pt yolov5x.pt
|
# python val.py --task study --data coco.yaml --iou 0.7 --weights yolov5s.pt yolov5m.pt yolov5l.pt yolov5x.pt
|
||||||
|
|||||||
Reference in new issue
Block a user