From 59685770e463150e07a10c4bb7a072a4eba3960d Mon Sep 17 00:00:00 2001 From: Sean Sube Date: Tue, 14 Nov 2023 23:23:23 -0600 Subject: [PATCH] feat(api): disable prompt alternatives for panorama to fix regions --- api/onnx_web/chain/source_txt2img.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/api/onnx_web/chain/source_txt2img.py b/api/onnx_web/chain/source_txt2img.py index 7485e5ea..d46b3711 100644 --- a/api/onnx_web/chain/source_txt2img.py +++ b/api/onnx_web/chain/source_txt2img.py @@ -130,7 +130,9 @@ class SourceTxt2ImgStage(BaseStage): ) 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() )