in 04_detect_segment/utils_box.py [0:0]
def gen_grid_for_tile(tile, grid_n):
tile_x1, tile_y1, tile_x2, tile_y2 = tf.unstack(tile, axis=0) # tile shape [4]
cell_w = (tile_x2 - tile_x1) / grid_n
grid = gen_grid(grid_n)
grid = size_and_move_grid(grid, cell_w, [tile_x1, tile_y1])
return grid, cell_w