From c8893c5fade98cea3e817beb763f9a64123f89f8 Mon Sep 17 00:00:00 2001 From: webbrain-one <295484252+webbrain-one@users.noreply.github.com> Date: Fri, 21 Aug 2026 09:55:17 +0300 Subject: [PATCH] fix: add missing text_encoder_projection_dim for SDXL Set text_encoder_projection_dim to 1280 in config.py to resolve the runtime error when running SDXL prompts. --- config.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/config.py b/config.py index 203cf7d..3affb88 100644 --- a/config.py +++ b/config.py @@ -11,6 +11,8 @@ class RunConfig: sd_xl: bool = False # Whether to use Stable Diffusion v2.1 sd_2_1: bool = False + # Projection dimension of the SDXL text encoder used to reshape prompt embeddings + text_encoder_projection_dim: int = 1280 # Which token indices to alter with attend-and-excite token_indices: List[int] = None # Which random seeds to use when generating