Skip to content

Commit 3a2cde1

Browse files
W&B DDP fix 2 (#2587)
Revert unintentional change to test batch sizes caused by PR ultralytics/yolov5#2125
1 parent 73ac573 commit 3a2cde1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

train.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ def train(hyp, opt, device, tb_writer=None):
349349
if not opt.notest or final_epoch: # Calculate mAP
350350
wandb_logger.current_epoch = epoch + 1
351351
results, maps, times = test.test(data_dict,
352-
batch_size=total_batch_size,
352+
batch_size=batch_size * 2,
353353
imgsz=imgsz_test,
354354
model=ema.ema,
355355
single_cls=opt.single_cls,

0 commit comments

Comments
 (0)