Pass --device for --task study (#5118)
This commit is contained in:
1 parent
a0e15046c3
commit
4f9718abe6
1 file changed
+1
-1
@@ -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')
|
||||
|
||||
Reference in new issue
Block a user