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
4b984a7c
Commit
4b984a7c
authored
Jan 18, 2020
by
CapMocha
Committed by
Kai Chen
Jan 18, 2020
Browse files
bug for distributed training (#1985)
fix a bug for distributed training in windows platform
parent
e032ebb7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
mmdet/apis/train.py
mmdet/apis/train.py
+1
-1
No files found.
mmdet/apis/train.py
View file @
4b984a7c
...
...
@@ -73,7 +73,7 @@ def parse_losses(losses):
log_vars
[
'loss'
]
=
loss
for
loss_name
,
loss_value
in
log_vars
.
items
():
# reduce loss when distributed training
if
dist
.
is_initialized
():
if
dist
.
is_available
()
and
dist
.
is_initialized
():
loss_value
=
loss_value
.
data
.
clone
()
dist
.
all_reduce
(
loss_value
.
div_
(
dist
.
get_world_size
()))
log_vars
[
loss_name
]
=
loss_value
.
item
()
...
...
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