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
357190f3
Unverified
Commit
357190f3
authored
Apr 02, 2020
by
Xinlong Wang
Committed by
GitHub
Apr 02, 2020
Browse files
Merge pull request #10 from taokong/kongtao
resolve dist_train issues by fixing mmcv==0.2.16
parents
925cc7cf
7b4cc7bf
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
6 deletions
+3
-6
docs/INSTALL.md
docs/INSTALL.md
+1
-1
mmdet/apis/train.py
mmdet/apis/train.py
+1
-4
requirements/runtime.txt
requirements/runtime.txt
+1
-1
No files found.
docs/INSTALL.md
View file @
357190f3
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
-
CUDA 9.0 or higher
-
CUDA 9.0 or higher
-
NCCL 2
-
NCCL 2
-
GCC 4.9 or higher
-
GCC 4.9 or higher
-
[
mmcv
](
https://github.com/open-mmlab/mmcv
)
-
[
mmcv
0.2.16
](
https://github.com/open-mmlab/mmcv
/tree/v0.2.16
)
We have tested the following versions of OS and softwares:
We have tested the following versions of OS and softwares:
...
...
mmdet/apis/train.py
View file @
357190f3
...
@@ -205,10 +205,7 @@ def _dist_train(model,
...
@@ -205,10 +205,7 @@ 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
)
...
...
requirements/runtime.txt
View file @
357190f3
matplotlib
matplotlib
mmcv
>
=0.
3
.1
mmcv
=
=0.
2
.1
6
numpy
numpy
scipy
scipy
# need older pillow until torchvision is fixed
# need older pillow until torchvision is fixed
...
...
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