updates
This commit is contained in:
parent
628d7e5081
commit
582becc4bf
3
train.py
3
train.py
|
@ -178,6 +178,9 @@ def train(
|
||||||
print('multi_scale img_size = %g' % dataset.img_size)
|
print('multi_scale img_size = %g' % dataset.img_size)
|
||||||
|
|
||||||
# Calculate mAP
|
# Calculate mAP
|
||||||
|
if opt.nosave and epochs < 10:
|
||||||
|
results = (0, 0, 0, 0, 0)
|
||||||
|
else:
|
||||||
with torch.no_grad():
|
with torch.no_grad():
|
||||||
results = test.test(cfg, data_cfg, batch_size=batch_size, img_size=img_size, model=model, conf_thres=0.1)
|
results = test.test(cfg, data_cfg, batch_size=batch_size, img_size=img_size, model=model, conf_thres=0.1)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue