Skip to content

Commit 3e4c570

Browse files
hlkyyiyixuxu
andauthored
Convert list/tuple of SD3ControlNetModel to SD3MultiControlNetModel (huggingface#9652)
Convert list/tuple of SD3ControlNetModel to SD3MultiControlNetModel Co-authored-by: YiYi Xu <[email protected]>
1 parent 1bcd19e commit 3e4c570

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,8 @@ def __init__(
192192
],
193193
):
194194
super().__init__()
195+
if isinstance(controlnet, (list, tuple)):
196+
controlnet = SD3MultiControlNetModel(controlnet)
195197

196198
self.register_modules(
197199
vae=vae,

0 commit comments

Comments
 (0)