Skip to content

Commit 1efd106

Browse files
committed
style
1 parent 6b05803 commit 1efd106

File tree

5 files changed

+22
-17
lines changed

5 files changed

+22
-17
lines changed

src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -486,8 +486,9 @@ def __call__(
486486
scale is enabled by setting `guidance_scale > 1`. Higher guidance scale encourages to generate images
487487
that are closely linked to the text `prompt`, usually at the expense of lower image quality. This
488488
parameter in the pipeline is there to support future guidance-distilled models when they come up. It is
489-
ignored when not using guidance distilled models. To enable traditional classifier-free guidance, please pass `true_cfg_scale > 1.0`
490-
and `negative_prompt` (even an empty negative prompt like " " should enable classifier-free guidance computations).
489+
ignored when not using guidance distilled models. To enable traditional classifier-free guidance,
490+
please pass `true_cfg_scale > 1.0` and `negative_prompt` (even an empty negative prompt like " " should
491+
enable classifier-free guidance computations).
491492
num_images_per_prompt (`int`, *optional*, defaults to 1):
492493
The number of images to generate per prompt.
493494
generator (`torch.Generator` or `List[torch.Generator]`, *optional*):

src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -590,8 +590,9 @@ def __call__(
590590
scale is enabled by setting `guidance_scale > 1`. Higher guidance scale encourages to generate images
591591
that are closely linked to the text `prompt`, usually at the expense of lower image quality. This
592592
parameter in the pipeline is there to support future guidance-distilled models when they come up. It is
593-
ignored when not using guidance distilled models. To enable traditional classifier-free guidance, please pass `true_cfg_scale > 1.0`
594-
and `negative_prompt` (even an empty negative prompt like " " should enable classifier-free guidance computations).
593+
ignored when not using guidance distilled models. To enable traditional classifier-free guidance,
594+
please pass `true_cfg_scale > 1.0` and `negative_prompt` (even an empty negative prompt like " " should
595+
enable classifier-free guidance computations).
595596
num_images_per_prompt (`int`, *optional*, defaults to 1):
596597
The number of images to generate per prompt.
597598
generator (`torch.Generator` or `List[torch.Generator]`, *optional*):

src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -558,13 +558,13 @@ def __call__(
558558
The prompt or prompts not to guide the image generation. If not defined, one has to pass
559559
`negative_prompt_embeds` instead. Ignored when not using guidance (i.e., ignored if `true_cfg_scale` is
560560
not greater than `1`).
561-
true_cfg_scale (`float`, *optional*, defaults to 1.0): true_cfg_scale (`float`, *optional*, defaults to 1.0):
562-
Guidance scale as defined in [Classifier-Free Diffusion
563-
Guidance](https://huggingface.co/papers/2207.12598). `true_cfg_scale` is defined as `w` of equation 2.
564-
of [Imagen Paper](https://huggingface.co/papers/2205.11487). Classifier-free guidance is enabled by
565-
setting `true_cfg_scale > 1` and a provided `negative_prompt`. Higher guidance scale encourages to
566-
generate images that are closely linked to the text `prompt`, usually at the expense of lower image
567-
quality.
561+
true_cfg_scale (`float`, *optional*, defaults to 1.0):
562+
true_cfg_scale (`float`, *optional*, defaults to 1.0): Guidance scale as defined in [Classifier-Free
563+
Diffusion Guidance](https://huggingface.co/papers/2207.12598). `true_cfg_scale` is defined as `w` of
564+
equation 2. of [Imagen Paper](https://huggingface.co/papers/2205.11487). Classifier-free guidance is
565+
enabled by setting `true_cfg_scale > 1` and a provided `negative_prompt`. Higher guidance scale
566+
encourages to generate images that are closely linked to the text `prompt`, usually at the expense of
567+
lower image quality.
568568
height (`int`, *optional*, defaults to self.unet.config.sample_size * self.vae_scale_factor):
569569
The height in pixels of the generated image. This is set to 1024 by default for the best results.
570570
width (`int`, *optional*, defaults to self.unet.config.sample_size * self.vae_scale_factor):
@@ -583,8 +583,9 @@ def __call__(
583583
scale is enabled by setting `guidance_scale > 1`. Higher guidance scale encourages to generate images
584584
that are closely linked to the text `prompt`, usually at the expense of lower image quality. This
585585
parameter in the pipeline is there to support future guidance-distilled models when they come up. It is
586-
ignored when not using guidance distilled models. To enable traditional classifier-free guidance, please pass `true_cfg_scale > 1.0`
587-
and `negative_prompt` (even an empty negative prompt like " " should enable classifier-free guidance computations).
586+
ignored when not using guidance distilled models. To enable traditional classifier-free guidance,
587+
please pass `true_cfg_scale > 1.0` and `negative_prompt` (even an empty negative prompt like " " should
588+
enable classifier-free guidance computations).
588589
num_images_per_prompt (`int`, *optional*, defaults to 1):
589590
The number of images to generate per prompt.
590591
generator (`torch.Generator` or `List[torch.Generator]`, *optional*):

src/diffusers/pipelines/qwenimage/pipeline_qwenimage_img2img.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -574,8 +574,9 @@ def __call__(
574574
scale is enabled by setting `guidance_scale > 1`. Higher guidance scale encourages to generate images
575575
that are closely linked to the text `prompt`, usually at the expense of lower image quality. This
576576
parameter in the pipeline is there to support future guidance-distilled models when they come up. It is
577-
ignored when not using guidance distilled models. To enable traditional classifier-free guidance, please pass `true_cfg_scale > 1.0`
578-
and `negative_prompt` (even an empty negative prompt like " " should enable classifier-free guidance computations).
577+
ignored when not using guidance distilled models. To enable traditional classifier-free guidance,
578+
please pass `true_cfg_scale > 1.0` and `negative_prompt` (even an empty negative prompt like " " should
579+
enable classifier-free guidance computations).
579580
num_images_per_prompt (`int`, *optional*, defaults to 1):
580581
The number of images to generate per prompt.
581582
generator (`torch.Generator` or `List[torch.Generator]`, *optional*):

src/diffusers/pipelines/qwenimage/pipeline_qwenimage_inpaint.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -704,8 +704,9 @@ def __call__(
704704
scale is enabled by setting `guidance_scale > 1`. Higher guidance scale encourages to generate images
705705
that are closely linked to the text `prompt`, usually at the expense of lower image quality. This
706706
parameter in the pipeline is there to support future guidance-distilled models when they come up. It is
707-
ignored when not using guidance distilled models. To enable traditional classifier-free guidance, please pass `true_cfg_scale > 1.0`
708-
and `negative_prompt` (even an empty negative prompt like " " should enable classifier-free guidance computations).
707+
ignored when not using guidance distilled models. To enable traditional classifier-free guidance,
708+
please pass `true_cfg_scale > 1.0` and `negative_prompt` (even an empty negative prompt like " " should
709+
enable classifier-free guidance computations).
709710
num_images_per_prompt (`int`, *optional*, defaults to 1):
710711
The number of images to generate per prompt.
711712
generator (`torch.Generator` or `List[torch.Generator]`, *optional*):

0 commit comments

Comments
 (0)