Skip to content

Commit 4674e73

Browse files
committed
add proper docs for negative prompts
1 parent 9572412 commit 4674e73

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/diffusers/pipelines/flux/pipeline_flux.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -790,6 +790,9 @@ def __call__(
790790
lora_scale = (
791791
self.joint_attention_kwargs.get("scale", None) if self.joint_attention_kwargs is not None else None
792792
)
793+
# should this not be like the following?
794+
# has_neg_prompt = negative_prompt is not None or (negative_prompt_embeds is not None and negative_pooled_prompt_embeds is not None)
795+
# do_true_cfg = true_cfg_scale > 1 and has_neg_prompt
793796
do_true_cfg = true_cfg_scale > 1 and negative_prompt is not None
794797
(
795798
prompt_embeds,

0 commit comments

Comments
 (0)