1
0
mirror of https://github.com/huggingface/diffusers.git synced 2026-01-27 17:22:53 +03:00

Fix typo in controlnet docs (#5486)

This commit is contained in:
Kyunghwan Kim
2023-10-24 03:36:35 +09:00
committed by GitHub
parent 33293ed504
commit 6e608d8a35

View File

@@ -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(