diffusers
8ad234f6 - Support workflows on conditional pipeline blocks

Commit
140 days ago
Support workflows on conditional pipeline blocks Move available_workflows/get_workflow from SequentialPipelineBlocks to the ModularPipelineBlocks base — they only need _workflow_map and get_execution_blocks, which ConditionalPipelineBlocks also has. Auto sub-blocks (encoders/core-denoise/decode) can now opt in with a _workflow_map using the same workflow names as the final blockset; flux2's vae encoder and core denoise steps demonstrate. A new tester mixin check (test_sub_block_workflow_map) asserts each opted-in sub-block resolves every workflow to the same blocks as the top-level expected_workflow_blocks entries under its path. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Author
Committer
Parents
Loading