| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| |
|
| | from diffusers.utils import logging |
| | from diffusers.modular_pipelines import SequentialPipelineBlocks |
| | from diffusers.modular_pipelines.modular_pipeline_utils import InsertableDict |
| |
|
| | from .before_denoise import WanRTAutoBeforeDenoiseStep |
| | from .decoders import WanRTDecodeStep |
| | from .encoders import WanRTTextEncoderStep |
| | from .denoise import WanRTDenoiseStep |
| |
|
| | logger = logging.get_logger(__name__) |
| |
|
| |
|
| | AUTO_BLOCKS = InsertableDict( |
| | [ |
| | ("text_encoder", WanRTTextEncoderStep), |
| | ("before_denoise", WanRTAutoBeforeDenoiseStep), |
| | ("denoise", WanRTDenoiseStep), |
| | ("decode", WanRTDecodeStep), |
| | ] |
| | ) |
| |
|
| |
|
| | class WanRTBlocks(SequentialPipelineBlocks): |
| | block_classes = list(AUTO_BLOCKS.copy().values()) |
| | block_names = list(AUTO_BLOCKS.copy().keys()) |
| |
|