This commit is contained in:
lllyasviel
2024-01-27 22:28:58 -08:00
parent e9d7f52ce5
commit 0695b4afdb
2 changed files with 6 additions and 3 deletions

View File

@@ -1,14 +1,14 @@
def apply_controlnet_advanced(
unet,
controlnet,
image,
cond_hint,
strength,
start_percent,
end_percent,
positive_advanced_weighting=None,
negative_advanced_weighting=None):
cnet = controlnet.copy().set_cond_hint(image, strength, (start_percent, end_percent))
cnet = controlnet.copy().set_cond_hint(cond_hint, strength, (start_percent, end_percent))
cnet.positive_advanced_weighting = positive_advanced_weighting
cnet.negative_advanced_weighting = negative_advanced_weighting