emilios commited on
Commit
87a0c8f
·
verified ·
1 Parent(s): de7f365

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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))