mirror of
https://github.com/lllyasviel/stable-diffusion-webui-forge.git
synced 2026-04-30 19:21:21 +00:00
Update sd_forge_controlnet_example.py
This commit is contained in:
@@ -75,6 +75,18 @@ class ControlNetExampleForge(scripts.Script):
|
|||||||
|
|
||||||
print('Preprocessor Canny finished.')
|
print('Preprocessor Canny finished.')
|
||||||
|
|
||||||
|
unet = p.sd_model.forge_objects.unet
|
||||||
|
|
||||||
|
# unet = opFreeU_V2.patch(unet, freeu_b1, freeu_b2, freeu_s1, freeu_s2)[0]
|
||||||
|
|
||||||
|
p.sd_model.forge_objects.unet = unet
|
||||||
|
|
||||||
|
# Below codes will add some logs to the texts below the image outputs on UI.
|
||||||
|
# The extra_generation_params does not influence results.
|
||||||
|
p.extra_generation_params.update(dict(
|
||||||
|
controlnet_info='You should see these texts below output images!',
|
||||||
|
))
|
||||||
|
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user