From f18defc16182f7a91a8aaf9e025b3c0e4b5a38e6 Mon Sep 17 00:00:00 2001 From: Glenn Jocher Date: Wed, 24 Mar 2021 15:39:53 +0100 Subject: [PATCH] W&B DDP fix 2 Revert unintentional change to test batch sizes caused by PR https://github.com/ultralytics/yolov5/pull/2125 --- train.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/train.py b/train.py index b9e4eea613dc..25a9accd3be0 100644 --- a/train.py +++ b/train.py @@ -349,7 +349,7 @@ def train(hyp, opt, device, tb_writer=None): if not opt.notest or final_epoch: # Calculate mAP wandb_logger.current_epoch = epoch + 1 results, maps, times = test.test(data_dict, - batch_size=total_batch_size, + batch_size=batch_size * 2, imgsz=imgsz_test, model=ema.ema, single_cls=opt.single_cls,