fradinho commited on
Commit
8a2f737
1 Parent(s): 6c68373

Update app.py

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