updates
This commit is contained in:
parent
115b333371
commit
a066a7b8ea
4
train.py
4
train.py
|
@ -321,8 +321,8 @@ def train():
|
||||||
if opt.prebias:
|
if opt.prebias:
|
||||||
print_model_biases(model)
|
print_model_biases(model)
|
||||||
else:
|
else:
|
||||||
# Calculate mAP (always test final epoch, skip first 10 if opt.nosave)
|
# Calculate mAP
|
||||||
if not (opt.notest or (opt.nosave and epoch < 10)) or final_epoch:
|
if not opt.notest or final_epoch:
|
||||||
with torch.no_grad():
|
with torch.no_grad():
|
||||||
results, maps = test.test(cfg,
|
results, maps = test.test(cfg,
|
||||||
data,
|
data,
|
||||||
|
|
Loading…
Reference in New Issue