Pass `--device` for `--task study` (#5118)
This commit is contained in:
parent
a0e15046c3
commit
4f9718abe6
2
val.py
2
val.py
|
|
@ -346,7 +346,7 @@ def main(opt):
|
||||||
for i in x: # img-size
|
for i in x: # img-size
|
||||||
print(f'\nRunning {f} point {i}...')
|
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,
|
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
|
y.append(r + t) # results and times
|
||||||
np.savetxt(f, y, fmt='%10.4g') # save
|
np.savetxt(f, y, fmt='%10.4g') # save
|
||||||
os.system('zip -r study.zip study_*.txt')
|
os.system('zip -r study.zip study_*.txt')
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue