This commit is contained in:
lllyasviel
2024-01-28 00:26:49 -08:00
parent fe8dbe2562
commit 70948938fb
2 changed files with 3 additions and 3 deletions

View File

@@ -7,13 +7,13 @@ def apply_controlnet_advanced(
end_percent,
positive_advanced_weighting=None,
negative_advanced_weighting=None,
frame_advanced_weighting=None,
advanced_frame_weighting=None,
):
cnet = controlnet.copy().set_cond_hint(image_bhwc.movedim(-1, 1), strength, (start_percent, end_percent))
cnet.positive_advanced_weighting = positive_advanced_weighting
cnet.negative_advanced_weighting = negative_advanced_weighting
cnet.frame_advanced_weighting = frame_advanced_weighting
cnet.advanced_frame_weighting = advanced_frame_weighting
m = unet.clone()
m.add_patched_controlnet(cnet)