Skip to content

Commit

Permalink
fix: error when requesting transparent images
Browse files Browse the repository at this point in the history
  • Loading branch information
db0 committed Jul 8, 2024
1 parent 237f1c7 commit 8b2baf0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion horde/apis/v2/stable.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ def validate(self):
"Generating Transparent images is only possible for Stable Diffusion 1.5 and XL models.",
rc="InvalidTransparencyModel",
)
if len(self.args.extra_source_images) > 0:
if self.args.extra_source_images and len(self.args.extra_source_images) > 0:
raise e.BadRequest(
"Generating Transparent images is not supported during img2img workflows.",
rc="InvalidTransparencyImg2Img",
Expand Down

0 comments on commit 8b2baf0

Please sign in to comment.