Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ModelZoo
SOLOv2-pytorch
Commits
83363a9a
Unverified
Commit
83363a9a
authored
Apr 01, 2020
by
Tao Kong
Committed by
GitHub
Apr 01, 2020
Browse files
fix mmcv version
parent
1e79dac4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
mmdet/apis/train.py
mmdet/apis/train.py
+4
-1
No files found.
mmdet/apis/train.py
View file @
83363a9a
...
@@ -205,7 +205,10 @@ def _dist_train(model,
...
@@ -205,7 +205,10 @@ def _dist_train(model,
for
ds
in
dataset
for
ds
in
dataset
]
]
# put model on gpus
# 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
# build runner
optimizer
=
build_optimizer
(
model
,
cfg
.
optimizer
)
optimizer
=
build_optimizer
(
model
,
cfg
.
optimizer
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment