Skip to content

Commit

Permalink
feat: qr_code on SDXL has double the kudos cost
Browse files Browse the repository at this point in the history
  • Loading branch information
db0 committed May 21, 2024
1 parent a9d7c15 commit 0d790f1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions horde/classes/stable/processing_generation.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ def get_details(self):
def get_gen_kudos(self):
# We have pre-calculated them as they don't change per worker
if model_reference.get_model_baseline(self.model) in ["stable_diffusion_xl"]:
if self.wp.params.get("workflow") == "qr_code":
return self.wp.kudos * 4
return self.wp.kudos * 2
if model_reference.get_model_baseline(self.model) in ["stable_cascade"]:
# Stable Cascade 2pass has almost a double cost as it generates extra at a low generation
Expand Down

0 comments on commit 0d790f1

Please sign in to comment.