From 769e69d4e66befea1bf094b78c820928cd1c4424 Mon Sep 17 00:00:00 2001 From: Kyunghwan Kim Date: Mon, 23 Oct 2023 15:51:12 +0900 Subject: [PATCH] Fix typo in controlnet docs --- 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 5ecf0748d275..9af2806672be 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(