Add match_target_res for Qwen Image 2.1 so reference images are scaled to the target's pixel area with their own aspect ratio, consistently across text-embedding caching, training, and sampling, and key the embedding cache on it.
This commit is contained in:
1 parent
71bc877833
commit
07abdbedc7
8 files changed
+113
-35
No files matched your search
@@ -2485,6 +2485,7 @@ class StableDiffusion:
|
||||
max_length=None,
|
||||
dropout_prob=0.0,
|
||||
control_images=None,
|
||||
target_size=None, # accepted for parity with BaseModel; legacy archs ignore it
|
||||
) -> PromptEmbeds:
|
||||
# sd1.5 embeddings are (bs, 77, 768)
|
||||
prompt = prompt
|
||||
|
||||
Reference in new issue
Block a user