fradinho commited on
Commit
258b290
·
1 Parent(s): 9d82b2d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -45,7 +45,7 @@ def predict_2(image):
45
 
46
  image = Image.fromarray(image).resize((size,size))
47
  image = np.array(image)
48
- stride = 1
49
  steps = int(pach_size/stride)
50
  patches_img = patchify(image, (pach_size, pach_size, 3), step=steps) #Step=256 for 256 patches means no overlap
51
  patches_img = patches_img[:,:,0,:,:,:]
 
45
 
46
  image = Image.fromarray(image).resize((size,size))
47
  image = np.array(image)
48
+ stride = 2
49
  steps = int(pach_size/stride)
50
  patches_img = patchify(image, (pach_size, pach_size, 3), step=steps) #Step=256 for 256 patches means no overlap
51
  patches_img = patches_img[:,:,0,:,:,:]