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