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