We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 02303d1 + b62614a commit 64cd465Copy full SHA for 64cd465
1 file changed
src/diffusers/pipelines/z_image/pipeline_z_image_omni.py
@@ -588,9 +588,10 @@ def __call__(
588
negative_prompt_embeds = [npe for npe in negative_prompt_embeds for _ in range(num_images_per_prompt)]
589
590
condition_siglip_embeds = [None if sels == [] else sels + [None] for sels in condition_siglip_embeds]
591
- negative_condition_siglip_embeds = [
592
- None if sels == [] else sels + [None] for sels in negative_condition_siglip_embeds
593
- ]
+ if self.do_classifier_free_guidance:
+ negative_condition_siglip_embeds = [
+ None if sels == [] else sels + [None] for sels in negative_condition_siglip_embeds
594
+ ]
595
596
actual_batch_size = batch_size * num_images_per_prompt
597
image_seq_len = (latents.shape[2] // 2) * (latents.shape[3] // 2)
0 commit comments