From df746becb7145363e6d4c2384c78e4d688fa383e Mon Sep 17 00:00:00 2001 From: Kyunghwan Kim Date: Tue, 24 Oct 2023 03:36:35 +0900 Subject: [PATCH] Fix typo in controlnet docs (#5486) --- docs/source/en/using-diffusers/controlnet.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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(