1
0
mirror of https://github.com/huggingface/diffusers.git synced 2026-01-29 07:22:12 +03:00

Revert "fix equal size list input"

This reverts commit 3fe4ad67d5.
This commit is contained in:
DN6
2025-06-14 00:14:06 +05:30
parent c711e8f10b
commit 589e939e33

View File

@@ -680,7 +680,7 @@ class ChromaPipeline(
elif negative_prompt is not None and isinstance(negative_prompt, list):
if len(negative_prompt) == 1:
negative_prompt = [negative_prompt] * batch_size
elif len(prompt) != len(negative_prompt):
else:
raise ValueError("prompt and negative_prompt are lists of unequal size")
else:
batch_size = prompt_embeds.shape[0]