Skip to content

Commit f97e24a

Browse files
committed
style + copy
1 parent 0e9c496 commit f97e24a

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

src/diffusers/modular_pipelines/qwenimage/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525
_import_structure["modular_blocks"] = [
2626
"ALL_BLOCKS",
2727
"AUTO_BLOCKS",
28-
"EDIT_AUTO_BLOCKS",
2928
"CONTROLNET_BLOCKS",
29+
"EDIT_AUTO_BLOCKS",
3030
"EDIT_BLOCKS",
3131
"EDIT_INPAINT_BLOCKS",
3232
"IMAGE2IMAGE_BLOCKS",
@@ -50,8 +50,8 @@
5050
from .modular_blocks import (
5151
ALL_BLOCKS,
5252
AUTO_BLOCKS,
53-
EDIT_AUTO_BLOCKS,
5453
CONTROLNET_BLOCKS,
54+
EDIT_AUTO_BLOCKS,
5555
EDIT_BLOCKS,
5656
EDIT_INPAINT_BLOCKS,
5757
IMAGE2IMAGE_BLOCKS,

src/diffusers/modular_pipelines/qwenimage/encoders.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -192,9 +192,9 @@ class QwenImageEditResizeDynamicStep(ModularPipelineBlocks):
192192
def __init__(self, input_name: str = "image", output_name: str = "resized_image"):
193193
"""Create a configurable step for resizing images to the target area (1024 * 1024) while maintaining the aspect ratio.
194194
195-
This block resizes an input image tensor and exposes the resized result
196-
under configurable input and output names. Use this when you need to wire the
197-
resize step to different image fields (e.g., "image", "control_image")
195+
This block resizes an input image tensor and exposes the resized result under configurable input and output
196+
names. Use this when you need to wire the resize step to different image fields (e.g., "image",
197+
"control_image")
198198
199199
Args:
200200
input_name (str, optional): Name of the image field to read from the
@@ -671,9 +671,8 @@ def __init__(
671671
):
672672
"""Initialize a VAE encoder step for converting images to latent representations.
673673
674-
Both the input and output names are configurable so this block can be
675-
configured to process to different image inputs (e.g., "processed_image" -> "image_latents",
676-
"processed_control_image" -> "control_image_latents").
674+
Both the input and output names are configurable so this block can be configured to process to different image
675+
inputs (e.g., "processed_image" -> "image_latents", "processed_control_image" -> "control_image_latents").
677676
678677
Args:
679678
input_name (str, optional): Name of the input image tensor. Defaults to "processed_image".

src/diffusers/modular_pipelines/qwenimage/modular_blocks.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -414,6 +414,7 @@ class QwenImageImg2ImgBeforeDenoiseStep(SequentialPipelineBlocks):
414414
def description(self):
415415
return "Before denoise step that prepare the inputs (timesteps, latents, rope inputs etc.) for the denoise step for img2img task."
416416

417+
417418
# auto before_denoise step for text2image, inpaint, img2img tasks
418419
class QwenImageAutoBeforeDenoiseStep(AutoPipelineBlocks):
419420
block_classes = [

0 commit comments

Comments
 (0)