|
|
|
|
|
|
|
|
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 |
|
|
for weights in ['yolov5s.pt', 'yolov5m.pt', 'yolov5l.pt', 'yolov5x.pt']: |
|
|
for weights in ['yolov5s.pt', 'yolov5m.pt', 'yolov5l.pt', 'yolov5x.pt']: |
|
|
f = 'study_%s_%s.txt' % (Path(opt.data).stem, Path(weights).stem) # filename to save to |
|
|
f = 'study_%s_%s.txt' % (Path(opt.data).stem, Path(weights).stem) # filename to save to |
|
|
x = list(range(288, 896, 64)) # x axis |
|
|
|
|
|
|
|
|
x = list(range(352, 832, 64)) # x axis |
|
|
y = [] # y axis |
|
|
y = [] # y axis |
|
|
for i in x: # img-size |
|
|
for i in x: # img-size |
|
|
print('\nRunning %s point %s...' % (f, i)) |
|
|
print('\nRunning %s point %s...' % (f, i)) |