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