jaketae commited on
Commit
7b207f0
1 Parent(s): 14261e1

fix: update variable names

Browse files
Files changed (1) hide show
  1. most_relevant_part.py +3 -3
most_relevant_part.py CHANGED
@@ -15,9 +15,9 @@ def split_image(im, num_rows=3, num_cols=3):
15
  row_size = im.shape[0] // num_rows
16
  col_size = im.shape[1] // num_cols
17
  tiles = [
18
- im[x : x + M, y : y + N]
19
- for x in range(0, num_rows * row_size, row_size)
20
- for y in range(0, num_cols * col_size, col_size)
21
  ]
22
  return tiles
23
 
 
15
  row_size = im.shape[0] // num_rows
16
  col_size = im.shape[1] // num_cols
17
  tiles = [
18
+ im[row : row + row_size, col : col + col_size]
19
+ for row in range(0, num_rows * row_size, row_size)
20
+ for col in range(0, num_cols * col_size, col_size)
21
  ]
22
  return tiles
23