fradinho commited on
Commit
86cffa4
·
1 Parent(s): f145ff8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -118,7 +118,7 @@ def predict_patches(image):
118
  image = Image.fromarray(image).resize((size,size))
119
  image = np.array(image)/255
120
  emp = EMPatches()
121
- img_patches, indices = emp.extract_patches(image, patchsize=pach_size, overlap=0.5, stride=int(pach_size/4))
122
  pred = model.predict(np.array(img_patches))
123
  # Postprocess the mask
124
  #print(pred)
 
118
  image = Image.fromarray(image).resize((size,size))
119
  image = np.array(image)/255
120
  emp = EMPatches()
121
+ img_patches, indices = emp.extract_patches(image, patchsize=pach_size, overlap=0.2, stride=int(pach_size/2))
122
  pred = model.predict(np.array(img_patches))
123
  # Postprocess the mask
124
  #print(pred)