revert test module to confuse users...

This commit is contained in:
Jirka committed 2020-07-17 01:16:22 +02:00
1 parent ef6f5b33a8
commit e8ea772384
6 files changed
+13 -13

No files matched your search

+2 -2
View File
@@ -7,7 +7,7 @@ import torch.optim.lr_scheduler as lr_scheduler
import torch.utils.data
from torch.utils.tensorboard import SummaryWriter
import eval # import eval.py to get mAP after each epoch
import test # import test.py to get mAP after each epoch
from models.yolo import Model
from utils import google_utils
from utils.datasets import *
@@ -291,7 +291,7 @@ def train(hyp):
ema.update_attr(model, include=['md', 'nc', 'hyp', 'gr', 'names', 'stride'])
final_epoch = epoch + 1 == epochs
if not opt.notest or final_epoch: # Calculate mAP
results, maps, times = eval.test(opt.data,
results, maps, times = test.test(opt.data,
batch_size=batch_size,
imgsz=imgsz_test,
save_json=final_epoch and opt.data.endswith(os.sep + 'coco.yaml'),