fradinho commited on
Commit
003306e
1 Parent(s): 153a460

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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 = 2
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,:,:,:]