improve cn (#598)

This commit is contained in:
lllyasviel
2023-10-09 04:07:01 -07:00
committed by GitHub
parent de6b1267e6
commit fc35888757
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -6,7 +6,7 @@ def centered_canny(x: np.ndarray):
assert isinstance(x, np.ndarray) assert isinstance(x, np.ndarray)
assert x.ndim == 2 and x.dtype == np.uint8 assert x.ndim == 2 and x.dtype == np.uint8
y = cv2.Canny(x, 100, 200) y = cv2.Canny(x, 64, 128)
y = y.astype(np.float32) / 255.0 y = y.astype(np.float32) / 255.0
return y return y
+1 -1
View File
@@ -1 +1 @@
version = '2.1.26' version = '2.1.27'