|
|
@ -306,7 +306,6 @@ def train(hyp, opt, device, tb_writer=None):
|
|
|
|
results, maps, times = test.test(opt.data,
|
|
|
|
results, maps, times = test.test(opt.data,
|
|
|
|
batch_size=total_batch_size,
|
|
|
|
batch_size=total_batch_size,
|
|
|
|
imgsz=imgsz_test,
|
|
|
|
imgsz=imgsz_test,
|
|
|
|
save_json=final_epoch and opt.data.endswith(os.sep + 'coco.yaml'),
|
|
|
|
|
|
|
|
model=ema.ema.module if hasattr(ema.ema, 'module') else ema.ema,
|
|
|
|
model=ema.ema.module if hasattr(ema.ema, 'module') else ema.ema,
|
|
|
|
single_cls=opt.single_cls,
|
|
|
|
single_cls=opt.single_cls,
|
|
|
|
dataloader=testloader,
|
|
|
|
dataloader=testloader,
|
|
|
|