Unverified 提交 c1af67dc authored 作者: Glenn Jocher's avatar Glenn Jocher 提交者: GitHub

Add torch DP warning (#3698)

上级 b3e2f4e0
......@@ -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
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论