Skip to content

Commit

Permalink
feat: prevent qr_code from sdxl_cn only when sdxl model is used
Browse files Browse the repository at this point in the history
  • Loading branch information
db0 committed May 22, 2024
1 parent 64a9c47 commit 55fae5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion horde/classes/stable/worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ def can_generate(self, waiting_prompt):
return [False, "bridge_version"]
if not check_bridge_capability("qr_code", self.bridge_agent):
return [False, "bridge_version"]
if not self.allow_sdxl_controlnet:
if "stable_diffusion_xl" in model_reference.get_all_model_baselines(self.get_model_names()) and not self.allow_sdxl_controlnet:
return [False, "controlnet"]
if waiting_prompt.params.get("hires_fix") and not check_bridge_capability("hires_fix", self.bridge_agent):
return [False, "bridge_version"]
Expand Down

0 comments on commit 55fae5b

Please sign in to comment.