Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -28,7 +28,7 @@ def predict_2(image):
|
|
28 |
|
29 |
image = Image.fromarray(image).resize((size,size))
|
30 |
image = np.array(image)
|
31 |
-
stride =
|
32 |
steps = int(pach_size/stride)
|
33 |
patches_img = patchify(image, (pach_size, pach_size, 3), step=steps) #Step=256 for 256 patches means no overlap
|
34 |
patches_img = patches_img[:,:,0,:,:,:]
|
|
|
28 |
|
29 |
image = Image.fromarray(image).resize((size,size))
|
30 |
image = np.array(image)
|
31 |
+
stride = 4
|
32 |
steps = int(pach_size/stride)
|
33 |
patches_img = patchify(image, (pach_size, pach_size, 3), step=steps) #Step=256 for 256 patches means no overlap
|
34 |
patches_img = patches_img[:,:,0,:,:,:]
|