Skip to content

Commit 774cb71

Browse files
authored
Update pipeline_sana_sprint.py
1 parent 70ba6ab commit 774cb71

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

src/diffusers/pipelines/sana/pipeline_sana_sprint.py

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -643,13 +643,11 @@ def __call__(
643643
in their `set_timesteps` method. If not defined, the default behavior when `num_inference_steps` is
644644
passed will be used. Must be in descending order.
645645
guidance_scale (`float`, *optional*, defaults to 4.5):
646-
Guidance scale as defined in [Classifier-Free Diffusion Guidance scale as defined in [Classifier-Free
647-
Diffusion Guidance](https://huggingface.co/papers/2207.12598). `guidance_scale` is defined as `w` of
648-
equation 2. of [Imagen Paper](https://huggingface.co/papers/2205.11487). Guidance scale is enabled by
649-
setting `guidance_scale > 1`. Higher guidance scale encourages to generate images that are closely
650-
linked to the text `prompt`, usually at the expense of lower image quality. In case of Flux, which is a
651-
guidance- distilled model, `guidance_scale > 1` doesn't implement true classifier-free guidance.
652-
Specifying `guidance_scale > 1` just mimics it.
646+
Embedded guiddance scale is enabled by setting `guidance_scale` > 1. Higher `guidance_scale` encourages a model to
647+
generate images more aligned with `prompt` at the expense of lower image quality.
648+
649+
Guidance-distilled models approximates true classifer-free guidance for `guidance_scale` > 1. Refer to the
650+
[paper](https://huggingface.co/papers/2210.03142) to learn more.
653651
num_images_per_prompt (`int`, *optional*, defaults to 1):
654652
The number of images to generate per prompt.
655653
height (`int`, *optional*, defaults to self.unet.config.sample_size):

0 commit comments

Comments
 (0)