Skip to content

Commit

Permalink
feat(api): disable prompt alternatives for panorama to fix regions
Browse files Browse the repository at this point in the history
  • Loading branch information
ssube committed Nov 15, 2023
1 parent 5824149 commit 5968577
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion api/onnx_web/chain/source_txt2img.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,9 @@ def run(
)
else:
# encode and record alternative prompts outside of LPW
if not params.is_xl():
if params.is_panorama() or params.is_xl():
logger.debug("prompt alternatives are not supported for panorama or SDXL")
else:
prompt_embeds = encode_prompt(
pipe, prompt_pairs, params.batch, params.do_cfg()
)
Expand Down

0 comments on commit 5968577

Please sign in to comment.