Skip to content

Commit 7c017d2

Browse files
authored
Update pipeline_flux_kontext.py
1 parent f515e17 commit 7c017d2

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

src/diffusers/pipelines/flux/pipeline_flux_kontext.py

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -795,13 +795,11 @@ def __call__(
795795
their `set_timesteps` method. If not defined, the default behavior when `num_inference_steps` is passed
796796
will be used.
797797
guidance_scale (`float`, *optional*, defaults to 3.5):
798-
Guidance scale as defined in [Classifier-Free Diffusion
799-
Guidance](https://huggingface.co/papers/2207.12598). `guidance_scale` is defined as `w` of equation 2.
800-
of [Imagen Paper](https://huggingface.co/papers/2205.11487). Guidance scale is enabled by setting
801-
`guidance_scale > 1`. Higher guidance scale encourages to generate images that are closely linked to
802-
the text `prompt`, usually at the expense of lower image quality. In case of Flux, which is a guidance-
803-
distilled model, `guidance_scale > 1` doesn't implement true classifier-free guidance. Specifying
804-
`guidance_scale > 1` just mimics it.
798+
Embedded guidance scale is enabled by setting `guidance_scale` > 1. Higher `guidance_scale` encourages a model to
799+
generate images more aligned with prompt at the expense of lower image quality.
800+
801+
Guidance-distilled models approximates true classifier-free guidance for `guidance_scale` > 1. Refer to the
802+
[paper](https://huggingface.co/papers/2210.03142) to learn more.
805803
num_images_per_prompt (`int`, *optional*, defaults to 1):
806804
The number of images to generate per prompt.
807805
generator (`torch.Generator` or `List[torch.Generator]`, *optional*):

0 commit comments

Comments
 (0)