Skip to content

Commit 2b559e9

Browse files
committed
Merge branch 'chroma-fork' into chroma-final
2 parents 589e939 + 3fe4ad6 commit 2b559e9

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

src/diffusers/pipelines/chroma/pipeline_chroma.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -675,13 +675,6 @@ def __call__(
675675
batch_size = 1
676676
elif prompt is not None and isinstance(prompt, list):
677677
batch_size = len(prompt)
678-
if negative_prompt is not None and isinstance(negative_prompt, str):
679-
negative_prompt = [negative_prompt] * batch_size
680-
elif negative_prompt is not None and isinstance(negative_prompt, list):
681-
if len(negative_prompt) == 1:
682-
negative_prompt = [negative_prompt] * batch_size
683-
else:
684-
raise ValueError("prompt and negative_prompt are lists of unequal size")
685678
else:
686679
batch_size = prompt_embeds.shape[0]
687680

0 commit comments

Comments
 (0)