This commit is contained in:
lllyasviel
2024-01-27 19:52:31 -08:00
parent 4443d636c6
commit 854b50376d
2 changed files with 10 additions and 2 deletions

View File

@@ -80,7 +80,7 @@ class ControlNetExampleForge(scripts.Script):
unet = apply_controlnet_advanced(unet=unet, controlnet=self.model, image=canny_image,
strength=1.0, start_percent=0.0, end_percent=1.0,
advanced_weighting=None)
positive_advanced_weighting=None, negative_advanced_weighting=None)
p.sd_model.forge_objects.unet = unet

View File

@@ -1,2 +1,10 @@
def apply_controlnet_advanced(unet, controlnet, image, strength, start_percent, end_percent, advanced_weighting=None):
def apply_controlnet_advanced(
unet,
controlnet,
image,
strength,
start_percent,
end_percent,
positive_advanced_weighting=None,
negative_advanced_weighting=None):
return unet