Skip to content

Commit bd4062b

Browse files
committed
Disabled type check for opencv constant
1 parent 7121b69 commit bd4062b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/backend/controlnet/controls/normal_control.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ def get_control_image(self, image: Image) -> Image:
1818

1919
bg_threhold = 0.4
2020

21-
x = cv2.Sobel(image, cv2.CV_32F, 1, 0, ksize=3)
21+
x = cv2.Sobel(image, cv2.CV_32F, 1, 0, ksize=3) # type: ignore
2222
x[image_depth < bg_threhold] = 0
2323

24-
y = cv2.Sobel(image, cv2.CV_32F, 0, 1, ksize=3)
24+
y = cv2.Sobel(image, cv2.CV_32F, 0, 1, ksize=3) # type: ignore
2525
y[image_depth < bg_threhold] = 0
2626

2727
z = np.ones_like(x) * np.pi * 2.0

0 commit comments

Comments
 (0)