diff --git a/docs/source/en/using-diffusers/controlnet.md b/docs/source/en/using-diffusers/controlnet.md index 5ecf0748d275c..9af2806672beb 100644 --- a/docs/source/en/using-diffusers/controlnet.md +++ b/docs/source/en/using-diffusers/controlnet.md @@ -351,9 +351,9 @@ prompt = "aerial view, a futuristic research complex in a bright foggy jungle, h negative_prompt = 'low quality, bad quality, sketches' images = pipe( - prompt, - negative_prompt=negative_prompt, - image=image, + prompt, + negative_prompt=negative_prompt, + image=canny_image, controlnet_conditioning_scale=0.5, ).images[0] images @@ -421,7 +421,7 @@ Prepare the canny image conditioning: ```py from diffusers.utils import load_image from PIL import Image -import numpy as np +import numpy as np import cv2 canny_image = load_image(