primerz commited on
Commit
6a62352
·
verified ·
1 Parent(s): 2f8d973

Update generator.py

Browse files
Files changed (1) hide show
  1. 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]