Skip to content

Commit

Permalink
Allow skipping of control type for ControlNet union (#2995)
Browse files Browse the repository at this point in the history
  • Loading branch information
huchenlei authored Jul 13, 2024
1 parent 258d6c1 commit 19ec5ea
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scripts/hook.py
Original file line number Diff line number Diff line change
Expand Up @@ -620,6 +620,7 @@ def forward(self, x, timesteps=None, context=None, y=None, **kwargs):
[
t.int_value()
for t in param.union_control_types
if t != ControlNetUnionControlType.UNKNOWN
]
if param.control_model_type == ControlModelType.ControlNetUnion
else None
Expand Down

0 comments on commit 19ec5ea

Please sign in to comment.