mirror of
https://github.com/lllyasviel/stable-diffusion-webui-forge.git
synced 2026-02-20 23:03:58 +00:00
i
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user