Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -34,7 +34,7 @@ def inference(img):
|
|
34 |
#mask_x, mask_y = np.where(processed == 0)
|
35 |
#im[mask_x, mask_y, :3] = 0
|
36 |
|
37 |
-
denoise = restoration.denoise_tv_chambolle( out , weight=0.1)
|
38 |
#thresh = threshold_otsu(denoise)
|
39 |
thresh = threshold_otsu(out)
|
40 |
#out = closing(denoise > thresh, square(2))
|
|
|
34 |
#mask_x, mask_y = np.where(processed == 0)
|
35 |
#im[mask_x, mask_y, :3] = 0
|
36 |
|
37 |
+
#denoise = restoration.denoise_tv_chambolle( out , weight=0.1)
|
38 |
#thresh = threshold_otsu(denoise)
|
39 |
thresh = threshold_otsu(out)
|
40 |
#out = closing(denoise > thresh, square(2))
|