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
3ce6380d
Unverified
Commit
3ce6380d
authored
Dec 12, 2022
by
Patrick von Platen
Committed by
GitHub
Dec 12, 2022
Browse files
[SD] Make sure scheduler is correct when converting (#1667)
parent
d2dc4de3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
scripts/convert_original_stable_diffusion_to_diffusers.py
scripts/convert_original_stable_diffusion_to_diffusers.py
+2
-0
No files found.
scripts/convert_original_stable_diffusion_to_diffusers.py
View file @
3ce6380d
...
@@ -925,6 +925,8 @@ if __name__ == "__main__":
...
@@ -925,6 +925,8 @@ if __name__ == "__main__":
set_alpha_to_one
=
False
,
set_alpha_to_one
=
False
,
prediction_type
=
prediction_type
,
prediction_type
=
prediction_type
,
)
)
# make sure scheduler works correctly with DDIM
scheduler
.
register_to_config
(
clip_sample
=
False
)
if
args
.
scheduler_type
==
"pndm"
:
if
args
.
scheduler_type
==
"pndm"
:
config
=
dict
(
scheduler
.
config
)
config
=
dict
(
scheduler
.
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