mirror of
https://github.com/lllyasviel/stable-diffusion-webui-forge.git
synced 2026-02-20 14:53:58 +00:00
20 lines
347 B
Python
20 lines
347 B
Python
def apply_controlnet_advanced(
|
|
unet,
|
|
controlnet,
|
|
image,
|
|
strength,
|
|
start_percent,
|
|
end_percent,
|
|
positive_advanced_weighting=None,
|
|
negative_advanced_weighting=None):
|
|
|
|
a = 0
|
|
|
|
unet.control_options = [1, 2, 3]
|
|
|
|
m = unet.clone()
|
|
|
|
m.control_options = [4, 5, 6]
|
|
|
|
return m
|