fradinho commited on
Commit
9ab01e7
·
1 Parent(s): 4588f6e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -91,7 +91,7 @@ def predict_patches(image):
91
  image = Image.fromarray(image).resize((size,size))
92
  image = np.array(image)/255
93
  emp = EMPatches()
94
- img_patches, indices = emp.extract_patches(image, patchsize=pach_size, overlap=0.2, stride=int(pach_size/2))
95
  pred = model.predict(np.array(img_patches))
96
  # Postprocess the mask
97
  #print(pred)
 
91
  image = Image.fromarray(image).resize((size,size))
92
  image = np.array(image)/255
93
  emp = EMPatches()
94
+ img_patches, indices = emp.extract_patches(image, patchsize=pach_size, overlap=0.5, stride=int(pach_size/2))
95
  pred = model.predict(np.array(img_patches))
96
  # Postprocess the mask
97
  #print(pred)