1
0
mirror of https://github.com/huggingface/diffusers.git synced 2026-01-29 07:22:12 +03:00
This commit is contained in:
yiyixuxu
2025-06-23 16:06:17 +02:00
parent 19545fd3e1
commit 78d2454c7c
2 changed files with 8 additions and 2 deletions

View File

@@ -947,7 +947,7 @@ class SequentialPipelineBlocks(ModularPipelineBlocks):
instance = cls()
# Create instances if classes are provided
blocks = {}
blocks = InsertableOrderedDict()
for name, block in blocks_dict.items():
if inspect.isclass(block):
blocks[name] = block()

View File

@@ -1698,7 +1698,13 @@ class StableDiffusionXLControlNetAutoInput(AutoPipelineBlocks):
block_classes = [StableDiffusionXLControlNetUnionInputStep, StableDiffusionXLControlNetInputStep]
block_names = ["controlnet_union", "controlnet"]
block_trigger_inputs = ["control_mode", "control_image"]
@property
def description(self):
return "Controlnet Input step that prepare the controlnet input.\n" + \
"This is an auto pipeline block that works for both controlnet and controlnet_union.\n" + \
" - `StableDiffusionXLControlNetUnionInputStep` is called to prepare the controlnet input when `control_mode` and `control_image` are provided.\n" + \
" - `StableDiffusionXLControlNetInputStep` is called to prepare the controlnet input when `control_image` is provided."
# Before denoise