Skip to content

Commit b4d45f0

Browse files
committed
style
1 parent d7d56c0 commit b4d45f0

File tree

5 files changed

+27
-25
lines changed

5 files changed

+27
-25
lines changed

src/diffusers/pipelines/flux/pipeline_flux.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -674,7 +674,8 @@ def __call__(
674674
The prompt or prompts not to guide the image generation to be sent to `tokenizer_2` and
675675
`text_encoder_2`. If not defined, `negative_prompt` is used in all the text-encoders.
676676
true_cfg_scale (`float`, *optional*, defaults to 1.0):
677-
True classifier-free guidance (guidance scale) is enabled when `true_cfg_scale` > 1 and `negative_prompt` is provided.
677+
True classifier-free guidance (guidance scale) is enabled when `true_cfg_scale` > 1 and
678+
`negative_prompt` is provided.
678679
height (`int`, *optional*, defaults to self.unet.config.sample_size * self.vae_scale_factor):
679680
The height in pixels of the generated image. This is set to 1024 by default for the best results.
680681
width (`int`, *optional*, defaults to self.unet.config.sample_size * self.vae_scale_factor):
@@ -687,11 +688,11 @@ def __call__(
687688
their `set_timesteps` method. If not defined, the default behavior when `num_inference_steps` is passed
688689
will be used.
689690
guidance_scale (`float`, *optional*, defaults to 3.5):
690-
Embedded guiddance scale is enabled by setting `guidance_scale` > 1. Higher `guidance_scale` encourages a model to
691-
generate images more aligned with `prompt` at the expense of lower image quality.
691+
Embedded guiddance scale is enabled by setting `guidance_scale` > 1. Higher `guidance_scale` encourages
692+
a model to generate images more aligned with `prompt` at the expense of lower image quality.
692693
693-
Guidance-distilled models approximates true classifer-free guidance for `guidance_scale` > 1. Refer to the
694-
[paper](https://huggingface.co/papers/2210.03142) to learn more.
694+
Guidance-distilled models approximates true classifer-free guidance for `guidance_scale` > 1. Refer to
695+
the [paper](https://huggingface.co/papers/2210.03142) to learn more.
695696
num_images_per_prompt (`int`, *optional*, defaults to 1):
696697
The number of images to generate per prompt.
697698
generator (`torch.Generator` or `List[torch.Generator]`, *optional*):

src/diffusers/pipelines/flux/pipeline_flux_control.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -661,11 +661,11 @@ def __call__(
661661
their `set_timesteps` method. If not defined, the default behavior when `num_inference_steps` is passed
662662
will be used.
663663
guidance_scale (`float`, *optional*, defaults to 3.5):
664-
Embedded guidance scale is enabled by setting `guidance_scale` > 1. Higher `guidance_scale` encourages a model to generate images
665-
more aligned with prompt at the expense of lower image quality.
666-
667-
Guidance-distilled models approximates true classifier-free guidance for `guidance_scale` > 1. Refer to the
668-
[paper](https://huggingface.co/papers/2210.03142) to learn more.
664+
Embedded guidance scale is enabled by setting `guidance_scale` > 1. Higher `guidance_scale` encourages
665+
a model to generate images more aligned with prompt at the expense of lower image quality.
666+
667+
Guidance-distilled models approximates true classifier-free guidance for `guidance_scale` > 1. Refer to
668+
the [paper](https://huggingface.co/papers/2210.03142) to learn more.
669669
num_images_per_prompt (`int`, *optional*, defaults to 1):
670670
The number of images to generate per prompt.
671671
generator (`torch.Generator` or `List[torch.Generator]`, *optional*):

src/diffusers/pipelines/flux/pipeline_flux_kontext.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -795,11 +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-
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.
798+
Embedded guidance scale is enabled by setting `guidance_scale` > 1. Higher `guidance_scale` encourages
799+
a model to 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
802+
the [paper](https://huggingface.co/papers/2210.03142) to learn more.
803803
num_images_per_prompt (`int`, *optional*, defaults to 1):
804804
The number of images to generate per prompt.
805805
generator (`torch.Generator` or `List[torch.Generator]`, *optional*):

src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -989,7 +989,8 @@ def __call__(
989989
The prompt or prompts not to guide the image generation to be sent to `tokenizer_2` and
990990
`text_encoder_2`. If not defined, `negative_prompt` is used in all the text-encoders.
991991
true_cfg_scale (`float`, *optional*, defaults to 1.0):
992-
True classifier-free guidance (guidance scale) is enabled when `true_cfg_scale` > 1 and `negative_prompt` is provided.
992+
True classifier-free guidance (guidance scale) is enabled when `true_cfg_scale` > 1 and
993+
`negative_prompt` is provided.
993994
height (`int`, *optional*, defaults to self.unet.config.sample_size * self.vae_scale_factor):
994995
The height in pixels of the generated image. This is set to 1024 by default for the best results.
995996
width (`int`, *optional*, defaults to self.unet.config.sample_size * self.vae_scale_factor):
@@ -1015,11 +1016,11 @@ def __call__(
10151016
their `set_timesteps` method. If not defined, the default behavior when `num_inference_steps` is passed
10161017
will be used.
10171018
guidance_scale (`float`, *optional*, defaults to 3.5):
1018-
Embedded guidance scale is enabled by setting `guidance_scale` > 1. Higher `guidance_scale` encourages a model to
1019-
generate images more aligned with `prompt` at the expense of lower image quality.
1020-
1021-
Guidance-distilled models approximates true classifier-free guidance for `guidance_scale` > 1. Refer to the
1022-
[paper](https://huggingface.co/papers/2210.03142) to learn more.
1019+
Embedded guidance scale is enabled by setting `guidance_scale` > 1. Higher `guidance_scale` encourages
1020+
a model to generate images more aligned with `prompt` at the expense of lower image quality.
1021+
1022+
Guidance-distilled models approximates true classifier-free guidance for `guidance_scale` > 1. Refer to
1023+
the [paper](https://huggingface.co/papers/2210.03142) to learn more.
10231024
num_images_per_prompt (`int`, *optional*, defaults to 1):
10241025
The number of images to generate per prompt.
10251026
generator (`torch.Generator` or `List[torch.Generator]`, *optional*):

src/diffusers/pipelines/sana/pipeline_sana_sprint.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -643,11 +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-
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.
646+
Embedded guiddance scale is enabled by setting `guidance_scale` > 1. Higher `guidance_scale` encourages
647+
a model to generate images more aligned with `prompt` at the expense of lower image quality.
648648
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.
649+
Guidance-distilled models approximates true classifer-free guidance for `guidance_scale` > 1. Refer to
650+
the [paper](https://huggingface.co/papers/2210.03142) to learn more.
651651
num_images_per_prompt (`int`, *optional*, defaults to 1):
652652
The number of images to generate per prompt.
653653
height (`int`, *optional*, defaults to self.unet.config.sample_size):

0 commit comments

Comments
 (0)