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
wangsen
paddle_dbnet
Commits
f1610456
Commit
f1610456
authored
Apr 15, 2022
by
Manan Goel
Browse files
Fixed bug to check if 'use_wandb' and 'use_visualdl' flags are addded or not
parent
87ba1c36
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
tools/program.py
tools/program.py
+2
-2
No files found.
tools/program.py
View file @
f1610456
...
...
@@ -560,12 +560,12 @@ def preprocess(is_train=False):
loggers
=
[]
if
config
[
'Global'
][
'use_visualdl'
]:
if
'use_visualdl'
in
config
[
'Global'
]
and
config
[
'Global'
][
'use_visualdl'
]:
save_model_dir
=
config
[
'Global'
][
'save_model_dir'
]
vdl_writer_path
=
'{}/vdl/'
.
format
(
save_model_dir
)
log_writer
=
VDLLogger
(
save_model_dir
)
loggers
.
append
(
log_writer
)
if
config
[
'Global'
][
'use_wandb'
]
or
'wandb'
in
config
:
if
(
'use_wandb'
in
config
[
'Global'
]
and
config
[
'Global'
][
'use_wandb'
]
)
or
'wandb'
in
config
:
save_dir
=
config
[
'Global'
][
'save_model_dir'
]
wandb_writer_path
=
"{}/wandb"
.
format
(
save_dir
)
if
"wandb"
in
config
:
...
...
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