diff --git a/api/onnx_web/diffusers/load.py b/api/onnx_web/diffusers/load.py index 0ab7bf9a..fb5d256f 100644 --- a/api/onnx_web/diffusers/load.py +++ b/api/onnx_web/diffusers/load.py @@ -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():