|
36 | 36 | _import_structure["autoencoders.autoencoder_tiny"] = ["AutoencoderTiny"]
|
37 | 37 | _import_structure["autoencoders.consistency_decoder_vae"] = ["ConsistencyDecoderVAE"]
|
38 | 38 | _import_structure["autoencoders.vq_model"] = ["VQModel"]
|
39 |
| - _import_structure["controlnet"] = ["ControlNetModel"] |
40 |
| - _import_structure["controlnet_flux"] = ["FluxControlNetModel", "FluxMultiControlNetModel"] |
41 |
| - _import_structure["controlnet_hunyuan"] = ["HunyuanDiT2DControlNetModel", "HunyuanDiT2DMultiControlNetModel"] |
42 |
| - _import_structure["controlnet_sd3"] = ["SD3ControlNetModel", "SD3MultiControlNetModel"] |
43 |
| - _import_structure["controlnet_sparsectrl"] = ["SparseControlNetModel"] |
44 |
| - _import_structure["controlnet_xs"] = ["ControlNetXSAdapter", "UNetControlNetXSModel"] |
| 39 | + _import_structure["controlnets.controlnet"] = ["ControlNetModel"] |
| 40 | + _import_structure["controlnets.controlnet_flux"] = ["FluxControlNetModel", "FluxMultiControlNetModel"] |
| 41 | + _import_structure["controlnets.controlnet_hunyuan"] = [ |
| 42 | + "HunyuanDiT2DControlNetModel", |
| 43 | + "HunyuanDiT2DMultiControlNetModel", |
| 44 | + ] |
| 45 | + _import_structure["controlnets.controlnet_sd3"] = ["SD3ControlNetModel", "SD3MultiControlNetModel"] |
| 46 | + _import_structure["controlnets.controlnet_sparsectrl"] = ["SparseControlNetModel"] |
| 47 | + _import_structure["controlnets.controlnet_xs"] = ["ControlNetXSAdapter", "UNetControlNetXSModel"] |
| 48 | + _import_structure["controlnets.multicontrolnet"] = ["MultiControlNetModel"] |
45 | 49 | _import_structure["embeddings"] = ["ImageProjection"]
|
46 | 50 | _import_structure["modeling_utils"] = ["ModelMixin"]
|
47 | 51 | _import_structure["transformers.auraflow_transformer_2d"] = ["AuraFlowTransformer2DModel"]
|
|
74 | 78 | _import_structure["unets.uvit_2d"] = ["UVit2DModel"]
|
75 | 79 |
|
76 | 80 | if is_flax_available():
|
77 |
| - _import_structure["controlnet_flax"] = ["FlaxControlNetModel"] |
| 81 | + _import_structure["controlnets.controlnet_flax"] = ["FlaxControlNetModel"] |
78 | 82 | _import_structure["unets.unet_2d_condition_flax"] = ["FlaxUNet2DConditionModel"]
|
79 | 83 | _import_structure["vae_flax"] = ["FlaxAutoencoderKL"]
|
80 | 84 |
|
|
94 | 98 | ConsistencyDecoderVAE,
|
95 | 99 | VQModel,
|
96 | 100 | )
|
97 |
| - from .controlnet import ControlNetModel |
98 |
| - from .controlnet_flux import FluxControlNetModel, FluxMultiControlNetModel |
99 |
| - from .controlnet_hunyuan import HunyuanDiT2DControlNetModel, HunyuanDiT2DMultiControlNetModel |
100 |
| - from .controlnet_sd3 import SD3ControlNetModel, SD3MultiControlNetModel |
101 |
| - from .controlnet_sparsectrl import SparseControlNetModel |
102 |
| - from .controlnet_xs import ControlNetXSAdapter, UNetControlNetXSModel |
| 101 | + from .controlnets import ( |
| 102 | + ControlNetModel, |
| 103 | + ControlNetXSAdapter, |
| 104 | + FluxControlNetModel, |
| 105 | + FluxMultiControlNetModel, |
| 106 | + HunyuanDiT2DControlNetModel, |
| 107 | + HunyuanDiT2DMultiControlNetModel, |
| 108 | + MultiControlNetModel, |
| 109 | + SD3ControlNetModel, |
| 110 | + SD3MultiControlNetModel, |
| 111 | + SparseControlNetModel, |
| 112 | + UNetControlNetXSModel, |
| 113 | + ) |
103 | 114 | from .embeddings import ImageProjection
|
104 | 115 | from .modeling_utils import ModelMixin
|
105 | 116 | from .transformers import (
|
|
137 | 148 | )
|
138 | 149 |
|
139 | 150 | if is_flax_available():
|
140 |
| - from .controlnet_flax import FlaxControlNetModel |
| 151 | + from .controlnets import FlaxControlNetModel |
141 | 152 | from .unets import FlaxUNet2DConditionModel
|
142 | 153 | from .vae_flax import FlaxAutoencoderKL
|
143 | 154 |
|
|
0 commit comments