1
0
Fork 0

feat(api): disable prompt alternatives for panorama to fix regions

This commit is contained in:
Sean Sube 2023-11-14 23:23:23 -06:00
parent 5824149cc0
commit 59685770e4
Signed by: ssube
GPG Key ID: 3EED7B957D362AF1
1 changed files with 3 additions and 1 deletions

View File

@ -130,7 +130,9 @@ class SourceTxt2ImgStage(BaseStage):
) )
else: else:
# encode and record alternative prompts outside of LPW # 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( prompt_embeds = encode_prompt(
pipe, prompt_pairs, params.batch, params.do_cfg() pipe, prompt_pairs, params.batch, params.do_cfg()
) )