Spaces:
Runtime error
Runtime error
Update generator.py
Browse files- generator.py +1 -1
generator.py
CHANGED
|
@@ -772,7 +772,7 @@ class RetroArtConverter:
|
|
| 772 |
conditioning_batch, pooled_batch = self.compel([prompt, negative_prompt])
|
| 773 |
|
| 774 |
# Unpack the batch results using slicing
|
| 775 |
-
# [0:1] keeps the batch dimension, which is required
|
| 776 |
pipe_kwargs["prompt_embeds"] = conditioning_batch[0:1]
|
| 777 |
pipe_kwargs["pooled_prompt_embeds"] = pooled_batch[0:1]
|
| 778 |
pipe_kwargs["negative_prompt_embeds"] = conditioning_batch[1:2]
|
|
|
|
| 772 |
conditioning_batch, pooled_batch = self.compel([prompt, negative_prompt])
|
| 773 |
|
| 774 |
# Unpack the batch results using slicing
|
| 775 |
+
# [0:1] and [1:2] keeps the batch dimension, which is required
|
| 776 |
pipe_kwargs["prompt_embeds"] = conditioning_batch[0:1]
|
| 777 |
pipe_kwargs["pooled_prompt_embeds"] = pooled_batch[0:1]
|
| 778 |
pipe_kwargs["negative_prompt_embeds"] = conditioning_batch[1:2]
|