Skip to content

Commit

Permalink
fix(api): do not apply prompt expansion patch to SDXL
Browse files Browse the repository at this point in the history
  • Loading branch information
ssube committed Sep 14, 2023
1 parent 4d0e24a commit bbff191
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/onnx_web/diffusers/load.py
Original file line number Diff line number Diff line change
Expand Up @@ -544,7 +544,7 @@ def patch_pipeline(
) -> None:
logger.debug("patching SD pipeline")

if not params.is_lpw():
if not params.is_lpw() and not params.is_xl():
pipe._encode_prompt = expand_prompt.__get__(pipe, pipeline)

if not params.is_xl():
Expand Down

0 comments on commit bbff191

Please sign in to comment.