Skip to content

Commit 5a8c1b5

Browse files
committed
add block mappings to modular_diffusers.stable_diffusion_xl.__init__
1 parent 7ad01a6 commit 5a8c1b5

File tree

1 file changed

+2
-0
lines changed
  • src/diffusers/modular_pipelines/stable_diffusion_xl

1 file changed

+2
-0
lines changed

src/diffusers/modular_pipelines/stable_diffusion_xl/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
_import_structure["modular_loader"] = ["StableDiffusionXLModularLoader"]
2626
_import_structure["encoders"] = ["StableDiffusionXLAutoIPAdapterStep", "StableDiffusionXLTextEncoderStep", "StableDiffusionXLAutoVaeEncoderStep"]
2727
_import_structure["decoders"] = ["StableDiffusionXLAutoDecodeStep"]
28+
_import_structure["modular_block_mappings"] = ["TEXT2IMAGE_BLOCKS", "IMAGE2IMAGE_BLOCKS", "INPAINT_BLOCKS", "CONTROLNET_BLOCKS", "CONTROLNET_UNION_BLOCKS", "IP_ADAPTER_BLOCKS", "AUTO_BLOCKS", "SDXL_SUPPORTED_BLOCKS"]
2829

2930
if TYPE_CHECKING or DIFFUSERS_SLOW_IMPORT:
3031
try:
@@ -37,6 +38,7 @@
3738
from .modular_loader import StableDiffusionXLModularLoader
3839
from .encoders import StableDiffusionXLAutoIPAdapterStep, StableDiffusionXLTextEncoderStep, StableDiffusionXLAutoVaeEncoderStep
3940
from .decoders import StableDiffusionXLAutoDecodeStep
41+
from .modular_block_mappings import SDXL_SUPPORTED_BLOCKS, TEXT2IMAGE_BLOCKS, IMAGE2IMAGE_BLOCKS, INPAINT_BLOCKS, CONTROLNET_BLOCKS, CONTROLNET_UNION_BLOCKS, IP_ADAPTER_BLOCKS, AUTO_BLOCKS
4042
else:
4143
import sys
4244

0 commit comments

Comments
 (0)