Преглед изворни кода

Add torch DP warning (#3698)

modifyDataloader
Glenn Jocher GitHub пре 3 година
родитељ
комит
c1af67dcd4
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 измењених фајлова са 2 додато и 0 уклоњено
  1. +2
    -0
      train.py

+ 2
- 0
train.py Прегледај датотеку

@@ -198,6 +198,8 @@ def train(hyp, # path/to/hyp.yaml or hyp dictionary

# DP mode
if cuda and RANK == -1 and torch.cuda.device_count() > 1:
logging.warning('DP not recommended, instead use torch.distributed.run for best DDP Multi-GPU results.\n'
'See Multi-GPU Tutorial at https://github.com/ultralytics/yolov5/issues/475 to get started.')
model = torch.nn.DataParallel(model)

# SyncBatchNorm

Loading…
Откажи
Сачувај