This commit is contained in:
lllyasviel
2024-01-27 21:26:26 -08:00
parent b5805732f1
commit 0db0e3ed88
2 changed files with 23 additions and 8 deletions

View File

@@ -8,12 +8,10 @@ def apply_controlnet_advanced(
positive_advanced_weighting=None,
negative_advanced_weighting=None):
a = 0
unet.control_options = [1, 2, 3]
cnet = controlnet.copy().set_cond_hint(image, strength, (start_percent, end_percent))
cnet.positive_advanced_weighting = positive_advanced_weighting
cnet.negative_advanced_weighting = negative_advanced_weighting
m = unet.clone()
m.control_options = [4, 5, 6]
m.add_patched_controlnet(cnet)
return m