File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -44,8 +44,8 @@ def split_area_into_lat_lon_centers(
44
44
lat_lon_centers = []
45
45
for col in range (left + margin , right + 1 , (margin * 2 ) + 1 ):
46
46
for row in range (top + margin , bottom + 1 , (margin * 2 ) + 1 ):
47
- pixel_col_center = (col * 512 ) + 256
48
- pixel_row_center = (row * 512 ) + 256
47
+ pixel_col_center = (col * TILE_SIZE ) + TILE_SIZE / 2
48
+ pixel_row_center = (row * TILE_SIZE ) + TILE_SIZE / 2
49
49
meters_col_center , meters_row_center = pixel_col_row_to_meters_col_row (
50
50
pixel_col_center , pixel_row_center , zoom
51
51
)
@@ -188,8 +188,8 @@ def predict_tile_batch(
188
188
if bbox_pad > 0 :
189
189
bbox_int [0 ] = max (0 , bbox_int [0 ] - bbox_pad )
190
190
bbox_int [1 ] = max (0 , bbox_int [1 ] - bbox_pad )
191
- bbox_int [2 ] = min (512 , bbox_int [2 ] + bbox_pad )
192
- bbox_int [3 ] = min (512 , bbox_int [3 ] + bbox_pad )
191
+ bbox_int [2 ] = min (TILE_SIZE , bbox_int [2 ] + bbox_pad )
192
+ bbox_int [3 ] = min (TILE_SIZE , bbox_int [3 ] + bbox_pad )
193
193
194
194
masks , * _ = sam_predictor .predict (
195
195
box = [bbox_int ],
You can’t perform that action at this time.
0 commit comments