This commit is contained in:
Glenn Jocher 2019-06-12 11:55:20 +02:00
parent 5edb0ec40d
commit 64933f7ce0
1 changed files with 1 additions and 1 deletions

View File

@ -259,7 +259,7 @@ def train(
if not (opt.notest or (opt.nosave and epoch < 10)) or epoch == epochs - 1: if not (opt.notest or (opt.nosave and epoch < 10)) or epoch == epochs - 1:
with torch.no_grad(): with torch.no_grad():
results, maps = test.test(cfg, data_cfg, batch_size=batch_size, img_size=img_size, model=model, results, maps = test.test(cfg, data_cfg, batch_size=batch_size, img_size=img_size, model=model,
conf_thres=0.001) conf_thres=0.1)
# Write epoch results # Write epoch results
with open('results.txt', 'a') as file: with open('results.txt', 'a') as file: