This commit is contained in:
Glenn Jocher 2019-06-25 19:36:11 +02:00
parent 1d76751e1f
commit 45540c787f
1 changed files with 1 additions and 1 deletions

View File

@ -241,7 +241,7 @@ def train(
# Calculate mAP (always test final epoch, skip first 5 if opt.nosave)
if not (opt.notest or (opt.nosave and epoch < 10)) or epoch == epochs - 1:
with torch.no_grad():
results, maps = test.test(cfg, data_cfg, batch_size=batch_size * 2, img_size=img_size_test, model=model,
results, maps = test.test(cfg, data_cfg, batch_size=batch_size, img_size=img_size_test, model=model,
conf_thres=0.1)
# Write epoch results