We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0785dba commit fe5bb7cCopy full SHA for fe5bb7c
src/diffusers/pipelines/flux/pipeline_flux.py
@@ -790,7 +790,10 @@ def __call__(
790
lora_scale = (
791
self.joint_attention_kwargs.get("scale", None) if self.joint_attention_kwargs is not None else None
792
)
793
- do_true_cfg = true_cfg_scale > 1 and negative_prompt is not None
+ has_neg_prompt = negative_prompt is not None or (
794
+ negative_prompt_embeds is not None and negative_pooled_prompt_embeds is not None
795
+ )
796
+ do_true_cfg = true_cfg_scale > 1 and has_neg_prompt
797
(
798
prompt_embeds,
799
pooled_prompt_embeds,
0 commit comments