Unverified Commit 83363a9a authored by Tao Kong's avatar Tao Kong Committed by GitHub
Browse files

fix mmcv version

parent 1e79dac4
......@@ -205,7 +205,10 @@ def _dist_train(model,
for ds in dataset
]
# put model on gpus
model = MMDistributedDataParallel(model.cuda())
# model = MMDistributedDataParallel(model.cuda())
model = MMDistributedDataParallel(model.cuda(),
device_ids=[torch.cuda.current_device()],
broadcast_buffers=False)
# build runner
optimizer = build_optimizer(model, cfg.optimizer)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment