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