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
627ad6e8
Unverified
Commit
627ad6e8
authored
Oct 17, 2022
by
Nathan Raw
Committed by
GitHub
Oct 17, 2022
Browse files
Rename frame filename in interpolation community example (#881)
🎨
rename frame filename
parent
fd26624f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
examples/community/interpolate_stable_diffusion.py
examples/community/interpolate_stable_diffusion.py
+1
-1
No files found.
examples/community/interpolate_stable_diffusion.py
View file @
627ad6e8
...
@@ -517,7 +517,7 @@ class StableDiffusionWalkPipeline(DiffusionPipeline):
...
@@ -517,7 +517,7 @@ class StableDiffusionWalkPipeline(DiffusionPipeline):
noise_batch
,
embeds_batch
=
None
,
None
noise_batch
,
embeds_batch
=
None
,
None
for
image
in
outputs
[
"images"
]:
for
image
in
outputs
[
"images"
]:
frame_filepath
=
str
(
save_path
/
f
"frame_
{
frame_idx
}
.png"
)
frame_filepath
=
str
(
save_path
/
f
"frame_
{
frame_idx
:
06
d
}
.png"
)
image
.
save
(
frame_filepath
)
image
.
save
(
frame_filepath
)
frame_filepaths
.
append
(
frame_filepath
)
frame_filepaths
.
append
(
frame_filepath
)
frame_idx
+=
1
frame_idx
+=
1
...
...
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