Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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.
|
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)
|