Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Image is rgb already
Browse files
app.py
CHANGED
@@ -8,8 +8,7 @@ def edge_detection(filepath, detector):
|
|
8 |
img: Tensor = K.io.load_image(filepath, K.io.ImageLoadType.RGB32)
|
9 |
img = img[None]
|
10 |
|
11 |
-
|
12 |
-
x_gray = K.color.rgb_to_grayscale(x_rgb)
|
13 |
|
14 |
|
15 |
if detector == '1st order derivates in x':
|
|
|
8 |
img: Tensor = K.io.load_image(filepath, K.io.ImageLoadType.RGB32)
|
9 |
img = img[None]
|
10 |
|
11 |
+
x_gray = K.color.rgb_to_grayscale(img)
|
|
|
12 |
|
13 |
|
14 |
if detector == '1st order derivates in x':
|