Skip to content

Commit

Permalink
fix: max steps calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
db0 committed Sep 12, 2024
1 parent bdb099e commit 1223851
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion horde/classes/stable/waiting_prompt.py
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ def require_upfront_kudos(self, counted_totals, total_threads):
if self.is_using_lcm() and self.get_accurate_steps() > 10:
return (True, max_res, False)
# Some models don't require a lot of steps, so we check their requirements. The max steps we allow without upfront kudos is 40
if any(model_reference.get_model_requirements(mn).get("max_steps", 40) > self.get_accurate_steps() for mn in model_names):
if any(model_reference.get_model_requirements(mn).get("max_steps", 40) < self.get_accurate_steps() for mn in model_names):
return (True, max_res, False)
if self.width * self.height > max_res * max_res:
return (True, max_res, False)
Expand Down

0 comments on commit 1223851

Please sign in to comment.