mokady commited on
Commit
0aa83fe
1 Parent(s): 61eba07

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -1
README.md CHANGED
@@ -78,10 +78,11 @@ negative_prompt = "Logo,Watermark,Text,Ugly,Morbid,Extra fingers,Poorly drawn ha
78
 
79
  # Calculate Canny image
80
  input_image = cv2.imread('pics/singer.png')
 
81
  input_image = cv2.Canny(input_image, low_threshold, high_threshold)
82
  input_image = input_image[:, :, None]
83
  input_image = np.concatenate([input_image, input_image, input_image], axis=2)
84
- canny_image = Image.fromarray(image)
85
 
86
  image = pipe(prompt=prompt, negative_prompt=negative_prompt, image=canny_image, controlnet_conditioning_scale=1.0, height=1024, width=1024).images[0]
87
  ```
 
78
 
79
  # Calculate Canny image
80
  input_image = cv2.imread('pics/singer.png')
81
+ low_threshold, high_threshold = 100, 200
82
  input_image = cv2.Canny(input_image, low_threshold, high_threshold)
83
  input_image = input_image[:, :, None]
84
  input_image = np.concatenate([input_image, input_image, input_image], axis=2)
85
+ canny_image = Image.fromarray(input_image)
86
 
87
  image = pipe(prompt=prompt, negative_prompt=negative_prompt, image=canny_image, controlnet_conditioning_scale=1.0, height=1024, width=1024).images[0]
88
  ```