Remove exception when ControlNet++ is detected and not using ControlNet++ nodes

This commit is contained in:
Jedrzej Kosinski
2024-07-18 14:05:40 -05:00
parent a895854a8e
commit 906ef7f2c6
+1 -1
View File
@@ -545,7 +545,7 @@ def load_controlnet(ckpt_path, timestep_keyframe: TimestepKeyframeGroup=None, mo
has_temporal_res_block_key = True
# ControlNet++ check
elif "task_embedding" in key:
raise Exception("ControlNet++ model detected; must be loaded using the Load ControlNet++ Model nodes.")
pass
if has_controlnet_key and has_motion_modules_key:
controlnet_type = ControlWeightType.SPARSECTRL