Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
SeetaResearch
/
SeetaDet
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit d5f7d2d9
authored
Sep 30, 2019
by
Ting PAN
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Disable tensorboard for non-root nodes
1 parent
f8359d17
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletions
lib/core/train.py
tools/mpi_train.py
lib/core/train.py
View file @
d5f7d2d
...
...
@@ -52,7 +52,7 @@ class SolverWrapper(object):
# Plan the metrics
self
.
metrics
=
collections
.
OrderedDict
()
if
cfg
.
ENABLE_TENSOR_BOARD
:
if
cfg
.
ENABLE_TENSOR_BOARD
and
logger
.
is_root
()
:
from
dragon.tools.tensorboard
import
TensorBoard
self
.
board
=
TensorBoard
(
log_dir
=
coordinator
.
experiment_dir
+
'/logs'
)
...
...
tools/mpi_train.py
View file @
d5f7d2d
...
...
@@ -70,6 +70,8 @@ if __name__ == '__main__':
'Excepted staring of {} processes, got {}.'
.
format
(
cfg
.
NUM_GPUS
,
world_size
)
)
# Setup the logging modules
logger
.
set_root_logger
(
world_rank
==
0
)
# Select the GPU depending on the rank of process
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment