fradinho commited on
Commit
26893ff
·
1 Parent(s): edc61ac

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -100,7 +100,7 @@ def predict_patches(image):
100
  image = Image.fromarray(image).resize((size,size))
101
  image = np.array(image)/255
102
  emp = EMPatches()
103
- img_patches, indices = emp.extract_patches(image, patchsize=pach_size, overlap=0.5, stride=int(pach_size/2))
104
  pred = model.predict(np.array(img_patches))
105
  # Postprocess the mask
106
  #print(pred)
 
100
  image = Image.fromarray(image).resize((size,size))
101
  image = np.array(image)/255
102
  emp = EMPatches()
103
+ img_patches, indices = emp.extract_patches(image, patchsize=pach_size, overlap=0.5, stride=int(pach_size/4))
104
  pred = model.predict(np.array(img_patches))
105
  # Postprocess the mask
106
  #print(pred)