提交 899f1d4b authored 作者: Lornatang's avatar Lornatang

Fix DDP bug in single process multiple device use cases

上级 0a09882e
......@@ -151,6 +151,7 @@ def train(hyp):
world_size=1, # number of nodes
rank=0) # node rank
model = torch.nn.parallel.DistributedDataParallel(model)
# pip install torch==1.4.0+cu100 torchvision==0.5.0+cu100 -f https://download.pytorch.org/whl/torch_stable.html
# Dataset
dataset = LoadImagesAndLabels(train_path, imgsz, batch_size,
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论