glenn-jocher commited on
Commit
9f98201
1 Parent(s): 2bcc89d

W&B DDP fix 2 (#2587)

Browse files

Revert unintentional change to test batch sizes caused by PR https://github.com/ultralytics/yolov5/pull/2125

Files changed (1) hide show
  1. train.py +1 -1
train.py CHANGED
@@ -349,7 +349,7 @@ def train(hyp, opt, device, tb_writer=None):
349
  if not opt.notest or final_epoch: # Calculate mAP
350
  wandb_logger.current_epoch = epoch + 1
351
  results, maps, times = test.test(data_dict,
352
- batch_size=total_batch_size,
353
  imgsz=imgsz_test,
354
  model=ema.ema,
355
  single_cls=opt.single_cls,
 
349
  if not opt.notest or final_epoch: # Calculate mAP
350
  wandb_logger.current_epoch = epoch + 1
351
  results, maps, times = test.test(data_dict,
352
+ batch_size=batch_size * 2,
353
  imgsz=imgsz_test,
354
  model=ema.ema,
355
  single_cls=opt.single_cls,