Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
renzhc
diffusers_dcu
Commits
d6c63bb9
Unverified
Commit
d6c63bb9
authored
Nov 12, 2025
by
YiYi Xu
Committed by
GitHub
Nov 12, 2025
Browse files
[modular] add a check (#12628)
* add * fix
parent
2f44d630
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
src/diffusers/modular_pipelines/modular_pipeline.py
src/diffusers/modular_pipelines/modular_pipeline.py
+4
-0
src/diffusers/modular_pipelines/qwenimage/modular_blocks.py
src/diffusers/modular_pipelines/qwenimage/modular_blocks.py
+1
-2
No files found.
src/diffusers/modular_pipelines/modular_pipeline.py
View file @
d6c63bb9
...
...
@@ -861,6 +861,10 @@ class SequentialPipelineBlocks(ModularPipelineBlocks):
else
:
sub_blocks
[
block_name
]
=
block
self
.
sub_blocks
=
sub_blocks
if
not
len
(
self
.
block_names
)
==
len
(
self
.
block_classes
):
raise
ValueError
(
f
"In
{
self
.
__class__
.
__name__
}
, the number of block_names and block_classes must be the same."
)
def
_get_inputs
(
self
):
inputs
=
[]
...
...
src/diffusers/modular_pipelines/qwenimage/modular_blocks.py
View file @
d6c63bb9
...
...
@@ -523,7 +523,7 @@ class QwenImageCoreDenoiseStep(SequentialPipelineBlocks):
QwenImageOptionalControlNetBeforeDenoiseStep
,
QwenImageAutoDenoiseStep
,
]
block_names
=
[
"input"
,
"controlnet_input"
,
"before_denoise"
,
"controlnet_before_denoise"
,
"denoise"
,
"decode"
]
block_names
=
[
"input"
,
"controlnet_input"
,
"before_denoise"
,
"controlnet_before_denoise"
,
"denoise"
]
@
property
def
description
(
self
):
...
...
@@ -534,7 +534,6 @@ class QwenImageCoreDenoiseStep(SequentialPipelineBlocks):
+
" - `QwenImageAutoBeforeDenoiseStep` (before_denoise) prepares the inputs for the denoising step.
\n
"
+
" - `QwenImageOptionalControlNetBeforeDenoiseStep` (controlnet_before_denoise) prepares the controlnet input for the denoising step.
\n
"
+
" - `QwenImageAutoDenoiseStep` (denoise) iteratively denoises the latents.
\n
"
+
" - `QwenImageAutoDecodeStep` (decode) decodes the latents into images.
\n\n
"
+
"This step support text-to-image, image-to-image, inpainting, and controlnet tasks for QwenImage:
\n
"
+
" - for image-to-image generation, you need to provide `image_latents`
\n
"
+
" - for inpainting, you need to provide `processed_mask_image` and `image_latents`
\n
"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment