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
0b45b588
Unverified
Commit
0b45b588
authored
Mar 14, 2024
by
Kenneth Gerald Hamilton
Committed by
GitHub
Mar 13, 2024
Browse files
update get_order_list if statement (#7309)
* update get_order_list if statement * revery
parent
d3986f18
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
src/diffusers/schedulers/scheduling_dpmsolver_singlestep.py
src/diffusers/schedulers/scheduling_dpmsolver_singlestep.py
+2
-0
No files found.
src/diffusers/schedulers/scheduling_dpmsolver_singlestep.py
View file @
0b45b588
...
@@ -223,6 +223,8 @@ class DPMSolverSinglestepScheduler(SchedulerMixin, ConfigMixin):
...
@@ -223,6 +223,8 @@ class DPMSolverSinglestepScheduler(SchedulerMixin, ConfigMixin):
"""
"""
steps
=
num_inference_steps
steps
=
num_inference_steps
order
=
self
.
config
.
solver_order
order
=
self
.
config
.
solver_order
if
order
>
3
:
raise
ValueError
(
"Order > 3 is not supported by this scheduler"
)
if
self
.
config
.
lower_order_final
:
if
self
.
config
.
lower_order_final
:
if
order
==
3
:
if
order
==
3
:
if
steps
%
3
==
0
:
if
steps
%
3
==
0
:
...
...
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