Skip to content

Commit

Permalink
FluxMultiControlNetModel (#9647)
Browse files Browse the repository at this point in the history
  • Loading branch information
hlky authored Oct 11, 2024
1 parent 3033f08 commit 0f8fb75
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/diffusers/pipelines/flux/pipeline_flux_controlnet.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,8 @@ def __init__(
],
):
super().__init__()
if isinstance(controlnet, (list, tuple)):
controlnet = FluxMultiControlNetModel(controlnet)

self.register_modules(
vae=vae,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,8 @@ def __init__(
],
):
super().__init__()
if isinstance(controlnet, (list, tuple)):
controlnet = FluxMultiControlNetModel(controlnet)

self.register_modules(
vae=vae,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,8 @@ def __init__(
],
):
super().__init__()
if isinstance(controlnet, (list, tuple)):
controlnet = FluxMultiControlNetModel(controlnet)

self.register_modules(
scheduler=scheduler,
Expand Down

0 comments on commit 0f8fb75

Please sign in to comment.