Skip to content

Commit

Permalink
Convert list/tuple of HunyuanDiT2DControlNetModel to `HunyuanDiT2DM…
Browse files Browse the repository at this point in the history
…ultiControlNetModel` (#9651)

Convert list/tuple of HunyuanDiT2DControlNetModel to HunyuanDiT2DMultiControlNetModel

Co-authored-by: YiYi Xu <yixu310@gmail.com>
  • Loading branch information
hlky and yiyixuxu authored Oct 15, 2024
1 parent 3e4c570 commit 957e5ca
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,8 @@ def __init__(
requires_safety_checker: bool = True,
):
super().__init__()
if isinstance(controlnet, (list, tuple)):
controlnet = HunyuanDiT2DMultiControlNetModel(controlnet)

self.register_modules(
vae=vae,
Expand Down

0 comments on commit 957e5ca

Please sign in to comment.