mirror of
https://github.com/lllyasviel/Fooocus.git
synced 2026-08-16 13:13:16 +02:00
improve cn (#598)
This commit is contained in:
@@ -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
@@ -1 +1 @@
|
|||||||
version = '2.1.26'
|
version = '2.1.27'
|
||||||
|
|||||||
Reference in New Issue
Block a user