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
renzhc
diffusers_dcu
Commits
56958e11
Unverified
Commit
56958e11
authored
Mar 06, 2023
by
Patrick von Platen
Committed by
GitHub
Mar 06, 2023
Browse files
[Training] Fix tensorboard typo (#2566)
parent
ec021923
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
examples/unconditional_image_generation/train_unconditional.py
...les/unconditional_image_generation/train_unconditional.py
+1
-1
No files found.
examples/unconditional_image_generation/train_unconditional.py
View file @
56958e11
...
@@ -648,7 +648,7 @@ def main(args):
...
@@ -648,7 +648,7 @@ def main(args):
if
is_accelerate_version
(
">="
,
"0.17.0.dev0"
):
if
is_accelerate_version
(
">="
,
"0.17.0.dev0"
):
tracker
=
accelerator
.
get_tracker
(
"tensorboard"
,
unwrap
=
True
)
tracker
=
accelerator
.
get_tracker
(
"tensorboard"
,
unwrap
=
True
)
else
:
else
:
tracker
=
accelerator
.
get_tracker
()
tracker
=
accelerator
.
get_tracker
(
"tensorboard"
)
tracker
.
add_images
(
"test_samples"
,
images_processed
.
transpose
(
0
,
3
,
1
,
2
),
epoch
)
tracker
.
add_images
(
"test_samples"
,
images_processed
.
transpose
(
0
,
3
,
1
,
2
),
epoch
)
elif
args
.
logger
==
"wandb"
:
elif
args
.
logger
==
"wandb"
:
# Upcoming `log_images` helper coming in https://github.com/huggingface/accelerate/pull/962/files
# Upcoming `log_images` helper coming in https://github.com/huggingface/accelerate/pull/962/files
...
...
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