Allow skipping of control type for ControlNet union (#2995)

pull/2998/head
Chenlei Hu 2024-07-13 10:42:11 -04:00 committed by GitHub
parent 258d6c1244
commit 19ec5ea3d2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -620,6 +620,7 @@ class UnetHook(nn.Module):
[
t.int_value()
for t in param.union_control_types
if t != ControlNetUnionControlType.UNKNOWN
]
if param.control_model_type == ControlModelType.ControlNetUnion
else None