Skip to content

Commit

Permalink
update get_order_list if statement (#7309)
Browse files Browse the repository at this point in the history
* update get_order_list if statement

* revery
  • Loading branch information
kghamilton89 committed Mar 14, 2024
1 parent d3986f1 commit 0b45b58
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/diffusers/schedulers/scheduling_dpmsolver_singlestep.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,8 @@ def get_order_list(self, num_inference_steps: int) -> List[int]:
"""
steps = num_inference_steps
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 order == 3:
if steps % 3 == 0:
Expand Down

0 comments on commit 0b45b58

Please sign in to comment.