mirror of
https://github.com/lllyasviel/stable-diffusion-webui-forge.git
synced 2026-04-23 07:49:27 +00:00
i
This commit is contained in:
@@ -7,13 +7,13 @@ def apply_controlnet_advanced(
|
||||
end_percent,
|
||||
positive_advanced_weighting=None,
|
||||
negative_advanced_weighting=None,
|
||||
only_apply_to_one_frame_in_a_batch=None,
|
||||
frame_advanced_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.only_apply_to_one_frame_in_a_batch = only_apply_to_one_frame_in_a_batch
|
||||
cnet.frame_advanced_weighting = frame_advanced_weighting
|
||||
|
||||
m = unet.clone()
|
||||
m.add_patched_controlnet(cnet)
|
||||
|
||||
Reference in New Issue
Block a user