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

Merge branch 'chroma-fork' into chroma-final

This commit is contained in:
DN6
2025-06-14 00:27:54 +05:30

View File

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