aletrn commited on
Commit
6c70a52
·
1 Parent(s): 94729d4

[test] refactor samexporter_predict and get_vectorized_raster_as_geojson to avoid writing the downloaded raster

Browse files
src/io/geo_helpers.py CHANGED
@@ -22,42 +22,36 @@ def load_affine_transformation_from_matrix(matrix_source_coeffs: List):
22
  app_logger.error(f"exception:{e}, check https://github.com/rasterio/affine project for updates")
23
 
24
 
25
- def get_vectorized_raster_as_geojson(rio_output, mask):
26
- try:
27
- from rasterio import open as rio_open
28
- from rasterio.features import shapes
29
- from geopandas import GeoDataFrame
30
 
31
- app_logger.info(f"read downloaded geotiff:{rio_output} to create the shapes_generator...")
32
 
33
- with rio_open(rio_output, "r", driver="GTiff") as rio_src:
34
- raster = rio_src.read()
35
- transform = rio_src.transform
36
- crs = rio_src.crs
37
 
38
- app_logger.debug(f"geotiff band:{raster.shape}, type: {type(raster)}, dtype: {raster.dtype}.")
39
- app_logger.debug(f"rio_src crs:{crs}.")
40
- app_logger.debug(f"rio_src transform:{transform}.")
 
41
 
42
- # mask = band != 0
43
- shapes_generator = ({
44
- 'properties': {'raster_val': v}, 'geometry': s}
45
- for i, (s, v)
46
- # in enumerate(shapes(mask, mask=(band != 0), transform=rio_src.transform))
47
- # use mask=None to avoid using source
48
- in enumerate(shapes(mask, mask=None, transform=transform))
49
- )
50
- app_logger.info(f"created shapes_generator, transform it to a polygon list...")
51
- shapes_list = list(shapes_generator)
52
- app_logger.info(f"created {len(shapes_list)} polygons.")
53
- gpd_polygonized_raster = GeoDataFrame.from_features(shapes_list, crs="EPSG:3857")
54
- app_logger.info(f"created a GeoDataFrame, export to geojson...")
55
- geojson = gpd_polygonized_raster.to_json(to_wgs84=True)
56
- app_logger.info(f"created geojson, preparing API response...")
57
- return {
58
- "geojson": geojson,
59
- "n_shapes_geojson": len(shapes_list)
60
- }
61
  except Exception as e_shape_band:
62
  app_logger.error(f"e_shape_band:{e_shape_band}.")
63
  raise e_shape_band
 
22
  app_logger.error(f"exception:{e}, check https://github.com/rasterio/affine project for updates")
23
 
24
 
25
+ def get_affine_transform_from_gdal(matrix):
26
+ from rasterio import Affine
 
 
 
27
 
28
+ return Affine.from_gdal(*matrix)
29
 
 
 
 
 
30
 
31
+ def get_vectorized_raster_as_geojson(mask, transform):
32
+ try:
33
+ from rasterio.features import shapes
34
+ from geopandas import GeoDataFrame
35
 
36
+ # mask = band != 0
37
+ shapes_generator = ({
38
+ 'properties': {'raster_val': v}, 'geometry': s}
39
+ for i, (s, v)
40
+ # in enumerate(shapes(mask, mask=(band != 0), transform=rio_src.transform))
41
+ # use mask=None to avoid using source
42
+ in enumerate(shapes(mask, mask=None, transform=transform))
43
+ )
44
+ app_logger.info(f"created shapes_generator, transform it to a polygon list...")
45
+ shapes_list = list(shapes_generator)
46
+ app_logger.info(f"created {len(shapes_list)} polygons.")
47
+ gpd_polygonized_raster = GeoDataFrame.from_features(shapes_list, crs="EPSG:3857")
48
+ app_logger.info(f"created a GeoDataFrame, export to geojson...")
49
+ geojson = gpd_polygonized_raster.to_json(to_wgs84=True)
50
+ app_logger.info(f"created geojson, preparing API response...")
51
+ return {
52
+ "geojson": geojson,
53
+ "n_shapes_geojson": len(shapes_list)
54
+ }
55
  except Exception as e_shape_band:
56
  app_logger.error(f"e_shape_band:{e_shape_band}.")
57
  raise e_shape_band
src/prediction_api/predictors.py CHANGED
@@ -1,12 +1,9 @@
1
  # Press the green button in the gutter to run the script.
2
- import tempfile
3
- from pathlib import Path
4
-
5
  import numpy as np
6
 
7
  from src import app_logger, MODEL_FOLDER
8
- from src.io.geo_helpers import get_vectorized_raster_as_geojson
9
- from src.io.tms2geotiff import save_geotiff_gdal, download_extent
10
  from src.prediction_api.sam_onnx import SegmentAnythingONNX
11
  from src.utilities.constants import MODEL_ENCODER_NAME, MODEL_DECODER_NAME, DEFAULT_TMS
12
 
@@ -26,26 +23,21 @@ def samexporter_predict(bbox, prompt: list[dict], zoom: float, model_name: str =
26
  app_logger.debug(f"using a {model_name} instance model...")
27
  models_instance = models_dict[model_name]["instance"]
28
 
29
- with tempfile.TemporaryDirectory() as input_tmp_dir:
30
- app_logger.info(f'tile_source: {DEFAULT_TMS}!')
31
- pt0, pt1 = bbox
32
- app_logger.info(f"downloading geo-referenced raster with bbox {bbox}, zoom {zoom}.")
33
- img, matrix = download_extent(DEFAULT_TMS, pt0[0], pt0[1], pt1[0], pt1[1], zoom)
34
- app_logger.debug(f"img type {type(img)} with shape/size:{img.size}, matrix:{matrix}.")
35
 
36
- pt0, pt1 = bbox
37
- rio_output = str(Path(input_tmp_dir) / f"downloaded_rio_{pt0[0]}_{pt0[1]}_{pt1[0]}_{pt1[1]}.tif")
38
- app_logger.debug(f"saving downloaded image as geotiff using matrix {matrix} to {rio_output}...")
39
- save_geotiff_gdal(img, rio_output, matrix)
40
- app_logger.info(f"saved downloaded geotiff image to {rio_output}, preparing inference...")
41
 
42
- mask, prediction_masks = get_raster_inference(img, prompt, models_instance, model_name)
43
- n_predictions = len(prediction_masks)
44
- app_logger.info(f"created {n_predictions} masks, preparing conversion to geojson...")
45
- return {
46
- "n_predictions": n_predictions,
47
- **get_vectorized_raster_as_geojson(rio_output, mask)
48
- }
49
  except ImportError as e_import_module:
50
  app_logger.error(f"Error trying import module:{e_import_module}.")
51
 
@@ -63,11 +55,12 @@ def get_raster_inference(img, prompt, models_instance, model_name):
63
  embedding = models_instance.encode(np_img)
64
  app_logger.debug(f"embedding created, running predict_masks with prompt {prompt}...")
65
  inference_out = models_instance.predict_masks(embedding, prompt)
66
- app_logger.info(f"Created {len(inference_out)} prediction_masks,"
 
67
  f"shape:{inference_out.shape}, dtype:{inference_out.dtype}.")
68
  mask = np.zeros((inference_out.shape[2], inference_out.shape[3]), dtype=np.uint8)
69
  for n, m in enumerate(inference_out[0, :, :, :]):
70
  app_logger.debug(f"{n}th of prediction_masks shape {inference_out.shape}"
71
  f" => mask shape:{mask.shape}, {mask.dtype}.")
72
  mask[m > 0.0] = 255
73
- return mask, inference_out
 
1
  # Press the green button in the gutter to run the script.
 
 
 
2
  import numpy as np
3
 
4
  from src import app_logger, MODEL_FOLDER
5
+ from src.io.geo_helpers import get_vectorized_raster_as_geojson, get_affine_transform_from_gdal
6
+ from src.io.tms2geotiff import download_extent
7
  from src.prediction_api.sam_onnx import SegmentAnythingONNX
8
  from src.utilities.constants import MODEL_ENCODER_NAME, MODEL_DECODER_NAME, DEFAULT_TMS
9
 
 
23
  app_logger.debug(f"using a {model_name} instance model...")
24
  models_instance = models_dict[model_name]["instance"]
25
 
26
+ app_logger.info(f'tile_source: {DEFAULT_TMS}!')
27
+ pt0, pt1 = bbox
28
+ app_logger.info(f"downloading geo-referenced raster with bbox {bbox}, zoom {zoom}.")
29
+ img, matrix = download_extent(DEFAULT_TMS, pt0[0], pt0[1], pt1[0], pt1[1], zoom)
30
+ app_logger.info(f"img type {type(img)} with shape/size:{img.size}, matrix:{matrix}.")
 
31
 
32
+ transform = get_affine_transform_from_gdal(matrix)
33
+ app_logger.debug(f"transform to consume with rasterio.shapes: {type(transform)}, {transform}.")
 
 
 
34
 
35
+ mask, n_predictions = get_raster_inference(img, prompt, models_instance, model_name)
36
+ app_logger.info(f"created {n_predictions} masks, preparing conversion to geojson...")
37
+ return {
38
+ "n_predictions": n_predictions,
39
+ **get_vectorized_raster_as_geojson(mask, transform)
40
+ }
 
41
  except ImportError as e_import_module:
42
  app_logger.error(f"Error trying import module:{e_import_module}.")
43
 
 
55
  embedding = models_instance.encode(np_img)
56
  app_logger.debug(f"embedding created, running predict_masks with prompt {prompt}...")
57
  inference_out = models_instance.predict_masks(embedding, prompt)
58
+ len_predictions = len(inference_out[0, :, :, :])
59
+ app_logger.info(f"Created {len_predictions} prediction_masks,"
60
  f"shape:{inference_out.shape}, dtype:{inference_out.dtype}.")
61
  mask = np.zeros((inference_out.shape[2], inference_out.shape[3]), dtype=np.uint8)
62
  for n, m in enumerate(inference_out[0, :, :, :]):
63
  app_logger.debug(f"{n}th of prediction_masks shape {inference_out.shape}"
64
  f" => mask shape:{mask.shape}, {mask.dtype}.")
65
  mask[m > 0.0] = 255
66
+ return mask, len_predictions
tests/events/get_raster_inference.json CHANGED
@@ -1,23 +1,18 @@
1
  {
2
  "europe": {
3
- "input": {
4
- "bbox": [[39.730430651533666, 13.52963789793414], [38.270537264557724, 10.717137897934139]],
5
- "prompt": [{"type": "point", "data": [900, 481], "label": 0}],
6
- "zoom": 9,
7
- "model_name": "fastsam"
8
- },
9
- "output": {"n_predictions": 1, "geojson": "{\"type\": \"FeatureCollection\", \"features\": [{\"id\": \"0\", \"type\": \"Feature\", \"properties\": {\"raster_val\": 255.0}, \"geometry\": {\"type\": \"Polygon\", \"coordinates\": [[[13.23575362059039, 38.91882348988028], [13.23575362059039, 38.91454947738164], [13.23850020262164, 38.91454947738164], [13.23850020262164, 38.91882348988028], [13.23575362059039, 38.91882348988028]]]}}, {\"id\": \"1\", \"type\": \"Feature\", \"properties\": {\"raster_val\": 255.0}, \"geometry\": {\"type\": \"Polygon\", \"coordinates\": [[[12.97208174559039, 38.73266611280105], [12.97482832762164, 38.73266611280105], [12.97482832762164, 38.73052354396008], [12.977574909652892, 38.73052354396008], [12.977574909652892, 38.7262382134958], [12.980321491684142, 38.7262382134958], [12.980321491684142, 38.717666781467685], [12.98306807371539, 38.717666781467685], [12.98306807371539, 38.71552376282115], [12.98581465574664, 38.71552376282115], [12.98581465574664, 38.71338067992099], [12.98856123777789, 38.71338067992099], [12.98856123777789, 38.71123753276822], [12.991307819809142, 38.71123753276822], [12.991307819809142, 38.70909432136395], [12.99405440184039, 38.70909432136395], [12.99405440184039, 38.70695104570924], [12.99680098387164, 38.70695104570924], [12.99680098387164, 38.704807705805166], [12.99954756590289, 38.704807705805166], [12.99954756590289, 38.70052083325323], [13.00229414793414, 38.70052083325323], [13.00229414793414, 38.696233703716715], [13.00504072996539, 38.696233703716715], [13.00504072996539, 38.69194631720421], [13.00778731199664, 38.69194631720421], [13.00778731199664, 38.68980252758466], [13.01053389402789, 38.68980252758466], [13.01053389402789, 38.68551475562435], [13.01328047605914, 38.68551475562435], [13.01328047605914, 38.681226726709575], [13.018773640121639, 38.681226726709575], [13.018773640121639, 38.67908261589697], [13.02152022215289, 38.67908261589697], [13.02152022215289, 38.67479420156668], [13.00778731199664, 38.67479420156668], [13.00778731199664, 38.676938440848964], [13.00229414793414, 38.676938440848964], [13.00229414793414, 38.67908261589697], [12.99680098387164, 38.67908261589697], [12.99680098387164, 38.681226726709575], [12.99405440184039, 38.681226726709575], [12.99405440184039, 38.68765867372435], [12.991307819809142, 38.68765867372435], [12.991307819809142, 38.696233703716715], [12.98856123777789, 38.696233703716715], [12.98856123777789, 38.698377300607504], [12.98581465574664, 38.698377300607504], [12.98581465574664, 38.70052083325323], [12.98306807371539, 38.70052083325323], [12.98306807371539, 38.7026643016528], [12.980321491684142, 38.7026643016528], [12.980321491684142, 38.70695104570924], [12.977574909652892, 38.70695104570924], [12.977574909652892, 38.70909432136395], [12.97482832762164, 38.70909432136395], [12.97482832762164, 38.71338067992099], [12.97208174559039, 38.71338067992099], [12.97208174559039, 38.717666781467685], [12.969335163559139, 38.717666781467685], [12.969335163559139, 38.73052354396008], [12.97208174559039, 38.73052354396008], [12.97208174559039, 38.73266611280105]]]}}, {\"id\": \"2\", \"type\": \"Feature\", \"properties\": {\"raster_val\": 255.0}, \"geometry\": {\"type\": \"Polygon\", \"coordinates\": [[[13.38956221434039, 38.68980252758466], [13.38956221434039, 38.676938440848964], [13.39230879637164, 38.676938440848964], [13.39230879637164, 38.67479420156668], [13.39505537840289, 38.67479420156668], [13.39505537840289, 38.676938440848964], [13.39780196043414, 38.676938440848964], [13.39780196043414, 38.68765867372435], [13.39505537840289, 38.68765867372435], [13.39505537840289, 38.68980252758466], [13.38956221434039, 38.68980252758466]]]}}, {\"id\": \"3\", \"type\": \"Feature\", \"properties\": {\"raster_val\": 255.0}, \"geometry\": {\"type\": \"Polygon\", \"coordinates\": [[[13.436254108871642, 38.68337077328572], [13.436254108871642, 38.676938440848964], [13.43900069090289, 38.676938440848964], [13.43900069090289, 38.68337077328572], [13.436254108871642, 38.68337077328572]]]}}, {\"id\": \"4\", \"type\": \"Feature\", \"properties\": {\"raster_val\": 255.0}, \"geometry\": {\"type\": \"Polygon\", \"coordinates\": [[[13.16708906980914, 38.771221362065766], [13.197301472152889, 38.771221362065766], [13.197301472152889, 38.76907995010783], [13.205541218246642, 38.76907995010783], [13.205541218246642, 38.76693847386955], [13.21103438230914, 38.76693847386955], [13.21103438230914, 38.764796933352024], [13.219274128402892, 38.764796933352024], [13.219274128402892, 38.7626553285563], [13.22202071043414, 38.7626553285563], [13.22202071043414, 38.76051365948343], [13.23026045652789, 38.76051365948343], [13.23026045652789, 38.758371926134494], [13.23575362059039, 38.758371926134494], [13.23575362059039, 38.756230128510545], [13.23850020262164, 38.756230128510545], [13.23850020262164, 38.75408826661264], [13.24124678465289, 38.75408826661264], [13.24124678465289, 38.75194634044186], [13.24399336668414, 38.75194634044186], [13.24399336668414, 38.74980434999927], [13.24673994871539, 38.74980434999927], [13.24673994871539, 38.745520176302904], [13.24948653074664, 38.745520176302904], [13.24948653074664, 38.743377993051254], [13.25223311277789, 38.743377993051254], [13.25223311277789, 38.741235745532045], [13.25497969480914, 38.741235745532045], [13.25497969480914, 38.73909343374636], [13.257726276840389, 38.73909343374636], [13.257726276840389, 38.73695105769526], [13.260472858871639, 38.73695105769526], [13.260472858871639, 38.73052354396008], [13.263219440902892, 38.73052354396008], [13.263219440902892, 38.72409545187461], [13.26596602293414, 38.72409545187461], [13.26596602293414, 38.70909432136395], [13.268712604965392, 38.70909432136395], [13.268712604965392, 38.70052083325323], [13.26596602293414, 38.70052083325323], [13.26596602293414, 38.69194631720421], [13.263219440902892, 38.69194631720421], [13.263219440902892, 38.68551475562435], [13.260472858871639, 38.68551475562435], [13.260472858871639, 38.68337077328572], [13.257726276840389, 38.68337077328572], [13.257726276840389, 38.676938440848964], [13.25497969480914, 38.676938440848964], [13.25497969480914, 38.67050553030351], [13.25223311277789, 38.67050553030351], [13.25223311277789, 38.66836109832478], [13.24948653074664, 38.66836109832478], [13.24948653074664, 38.66621660211608], [13.24673994871539, 38.66621660211608], [13.24673994871539, 38.66407204167847], [13.24399336668414, 38.66407204167847], [13.24399336668414, 38.66192741701305], [13.23850020262164, 38.66192741701305], [13.23850020262164, 38.659782728120874], [13.23575362059039, 38.659782728120874], [13.23575362059039, 38.65549315766064], [13.233007038559142, 38.65549315766064], [13.233007038559142, 38.65334827609474], [13.22751387449664, 38.65334827609474], [13.22751387449664, 38.65120333030643], [13.22476729246539, 38.65120333030643], [13.22476729246539, 38.649058320296795], [13.219274128402892, 38.649058320296795], [13.219274128402892, 38.64691324606691], [13.21378096434039, 38.64691324606691], [13.21378096434039, 38.64476810761786], [13.21103438230914, 38.64476810761786], [13.21103438230914, 38.64262290495074], [13.205541218246642, 38.64262290495074], [13.205541218246642, 38.640477638066635], [13.20004805418414, 38.640477638066635], [13.20004805418414, 38.63833230696661], [13.19180830809039, 38.63833230696661], [13.19180830809039, 38.63618691165178], [13.15884932371539, 38.63618691165178], [13.15884932371539, 38.63833230696661], [13.142369831527892, 38.63833230696661], [13.142369831527892, 38.640477638066635], [13.13413008543414, 38.640477638066635], [13.13413008543414, 38.64262290495074], [13.131383503402892, 38.64262290495074], [13.131383503402892, 38.64476810761786], [13.12589033934039, 38.64476810761786], [13.12589033934039, 38.64691324606691], [13.123143757309139, 38.64691324606691], [13.123143757309139, 38.649058320296795], [13.114904011215392, 38.649058320296795], [13.114904011215392, 38.65120333030643], [13.109410847152889, 38.65120333030643], [13.109410847152889, 38.65334827609474], [13.106664265121639, 38.65334827609474], [13.106664265121639, 38.65763797500305], [13.10391768309039, 38.65763797500305], [13.10391768309039, 38.66192741701305], [13.10117110105914, 38.66192741701305], [13.10117110105914, 38.66621660211608], [13.09842451902789, 38.66621660211608], [13.09842451902789, 38.66836109832478], [13.09567793699664, 38.66836109832478], [13.09567793699664, 38.67264989805116], [13.09293135496539, 38.67264989805116], [13.09293135496539, 38.676938440848964], [13.09018477293414, 38.676938440848964], [13.09018477293414, 38.68337077328572], [13.08743819090289, 38.68337077328572], [13.08743819090289, 38.70909432136395], [13.09018477293414, 38.70909432136395], [13.09018477293414, 38.71552376282115], [13.09293135496539, 38.71552376282115], [13.09293135496539, 38.72195262599548], [13.09567793699664, 38.72195262599548], [13.09567793699664, 38.72838091085798], [13.09842451902789, 38.72838091085798], [13.09842451902789, 38.73052354396008], [13.10117110105914, 38.73052354396008], [13.10117110105914, 38.734808617379784], [13.10391768309039, 38.734808617379784], [13.10391768309039, 38.73695105769526], [13.106664265121639, 38.73695105769526], [13.106664265121639, 38.741235745532045], [13.109410847152889, 38.741235745532045], [13.109410847152889, 38.743377993051254], [13.11215742918414, 38.743377993051254], [13.11215742918414, 38.745520176302904], [13.114904011215392, 38.745520176302904], [13.114904011215392, 38.74766229528593], [13.117650593246639, 38.74766229528593], [13.117650593246639, 38.74980434999927], [13.120397175277892, 38.74980434999927], [13.120397175277892, 38.75194634044186], [13.123143757309139, 38.75194634044186], [13.123143757309139, 38.75408826661264], [13.12589033934039, 38.75408826661264], [13.12589033934039, 38.756230128510545], [13.12863692137164, 38.756230128510545], [13.12863692137164, 38.758371926134494], [13.13413008543414, 38.758371926134494], [13.13413008543414, 38.76051365948343], [13.13962324949664, 38.76051365948343], [13.13962324949664, 38.7626553285563], [13.145116413559142, 38.7626553285563], [13.145116413559142, 38.764796933352024], [13.14786299559039, 38.764796933352024], [13.14786299559039, 38.76693847386955], [13.15610274168414, 38.76693847386955], [13.15610274168414, 38.76907995010783], [13.16708906980914, 38.76907995010783], [13.16708906980914, 38.771221362065766]]]}}, {\"id\": \"5\", \"type\": \"Feature\", \"properties\": {\"raster_val\": 255.0}, \"geometry\": {\"type\": \"Polygon\", \"coordinates\": [[[13.44449385496539, 38.65549315766064], [13.447240436996642, 38.65549315766064], [13.447240436996642, 38.640477638066635], [13.44449385496539, 38.640477638066635], [13.44449385496539, 38.63833230696661], [13.433507526840392, 38.63833230696661], [13.433507526840392, 38.640477638066635], [13.430760944809142, 38.640477638066635], [13.430760944809142, 38.64476810761786], [13.433507526840392, 38.64476810761786], [13.433507526840392, 38.649058320296795], [13.44174727293414, 38.649058320296795], [13.44174727293414, 38.65120333030643], [13.44449385496539, 38.65120333030643], [13.44449385496539, 38.65549315766064]]]}}, {\"id\": \"6\", \"type\": \"Feature\", \"properties\": {\"raster_val\": 255.0}, \"geometry\": {\"type\": \"Polygon\", \"coordinates\": [[[13.38956221434039, 38.57608977603896], [13.39505537840289, 38.57608977603896], [13.39505537840289, 38.5717951977156], [13.38681563230914, 38.5717951977156], [13.38681563230914, 38.57394251896832], [13.38956221434039, 38.57394251896832], [13.38956221434039, 38.57608977603896]]]}}, {\"id\": \"7\", \"type\": \"Feature\", \"properties\": {\"raster_val\": 255.0}, \"geometry\": {\"type\": \"Polygon\", \"coordinates\": [[[13.348363483871642, 38.54387418136199], [13.351110065902889, 38.54387418136199], [13.351110065902889, 38.54172596167574], [13.353856647934142, 38.54172596167574], [13.353856647934142, 38.53957767782393], [13.351110065902889, 38.53957767782393], [13.351110065902889, 38.53742932980766], [13.342870319809142, 38.53742932980766], [13.342870319809142, 38.54172596167574], [13.348363483871642, 38.54172596167574], [13.348363483871642, 38.54387418136199]]]}}, {\"id\": \"8\", \"type\": \"Feature\", \"properties\": {\"raster_val\": 255.0}, \"geometry\": {\"type\": \"Polygon\", \"coordinates\": [[[13.27695235105914, 38.50734572093069], [13.27695235105914, 38.50304703608306], [13.28519209715289, 38.50304703608306], [13.28519209715289, 38.50734572093069], [13.27695235105914, 38.50734572093069]]]}}, {\"id\": \"9\", \"type\": \"Feature\", \"properties\": {\"raster_val\": 255.0}, \"geometry\": {\"type\": \"Polygon\", \"coordinates\": [[[13.279698933090392, 38.421323283457376], [13.279698933090392, 38.417019468654736], [13.282445515121642, 38.417019468654736], [13.282445515121642, 38.421323283457376], [13.279698933090392, 38.421323283457376]]]}}, {\"id\": \"10\", \"type\": \"Feature\", \"properties\": {\"raster_val\": 255.0}, \"geometry\": {\"type\": \"Polygon\", \"coordinates\": [[[12.55185469480914, 38.3351982810293], [12.55185469480914, 38.330889339874744], [12.55734785887164, 38.330889339874744], [12.55734785887164, 38.33304384248035], [12.56009444090289, 38.33304384248035], [12.56009444090289, 38.3351982810293], [12.55185469480914, 38.3351982810293]]]}}, {\"id\": \"11\", \"type\": \"Feature\", \"properties\": {\"raster_val\": 0.0}, \"geometry\": {\"type\": \"Polygon\", \"coordinates\": [[[10.717137897934137, 39.73043065153366], [10.717137897934137, 38.27053726455772], [13.52963789793414, 38.27053726455772], [13.52963789793414, 39.73043065153366], [10.717137897934137, 39.73043065153366]], [[13.23575362059039, 38.91882348988028], [13.23575362059039, 38.91454947738164], [13.23850020262164, 38.91454947738164], [13.23850020262164, 38.91882348988028], [13.23575362059039, 38.91882348988028]], [[13.16708906980914, 38.771221362065766], [13.16708906980914, 38.76907995010783], [13.15610274168414, 38.76907995010783], [13.15610274168414, 38.76693847386955], [13.14786299559039, 38.76693847386955], [13.14786299559039, 38.764796933352024], [13.145116413559142, 38.764796933352024], [13.145116413559142, 38.7626553285563], [13.13962324949664, 38.7626553285563], [13.13962324949664, 38.76051365948343], [13.13413008543414, 38.76051365948343], [13.13413008543414, 38.758371926134494], [13.12863692137164, 38.758371926134494], [13.12863692137164, 38.756230128510545], [13.12589033934039, 38.756230128510545], [13.12589033934039, 38.75408826661264], [13.123143757309139, 38.75408826661264], [13.123143757309139, 38.75194634044186], [13.120397175277892, 38.75194634044186], [13.120397175277892, 38.74980434999927], [13.117650593246639, 38.74980434999927], [13.117650593246639, 38.74766229528593], [13.114904011215392, 38.74766229528593], [13.114904011215392, 38.745520176302904], [13.11215742918414, 38.745520176302904], [13.11215742918414, 38.743377993051254], [13.109410847152889, 38.743377993051254], [13.109410847152889, 38.741235745532045], [13.106664265121639, 38.741235745532045], [13.106664265121639, 38.73695105769526], [13.10391768309039, 38.73695105769526], [13.10391768309039, 38.734808617379784], [13.10117110105914, 38.734808617379784], [13.10117110105914, 38.73052354396008], [13.09842451902789, 38.73052354396008], [13.09842451902789, 38.72838091085798], [13.09567793699664, 38.72838091085798], [13.09567793699664, 38.72195262599548], [13.09293135496539, 38.72195262599548], [13.09293135496539, 38.71552376282115], [13.09018477293414, 38.71552376282115], [13.09018477293414, 38.70909432136395], [13.08743819090289, 38.70909432136395], [13.08743819090289, 38.68337077328572], [13.09018477293414, 38.68337077328572], [13.09018477293414, 38.676938440848964], [13.09293135496539, 38.676938440848964], [13.09293135496539, 38.67264989805116], [13.09567793699664, 38.67264989805116], [13.09567793699664, 38.66836109832478], [13.09842451902789, 38.66836109832478], [13.09842451902789, 38.66621660211608], [13.10117110105914, 38.66621660211608], [13.10117110105914, 38.66192741701305], [13.10391768309039, 38.66192741701305], [13.10391768309039, 38.65763797500305], [13.106664265121639, 38.65763797500305], [13.106664265121639, 38.65334827609474], [13.109410847152889, 38.65334827609474], [13.109410847152889, 38.65120333030643], [13.114904011215392, 38.65120333030643], [13.114904011215392, 38.649058320296795], [13.123143757309139, 38.649058320296795], [13.123143757309139, 38.64691324606691], [13.12589033934039, 38.64691324606691], [13.12589033934039, 38.64476810761786], [13.131383503402892, 38.64476810761786], [13.131383503402892, 38.64262290495074], [13.13413008543414, 38.64262290495074], [13.13413008543414, 38.640477638066635], [13.142369831527892, 38.640477638066635], [13.142369831527892, 38.63833230696661], [13.15884932371539, 38.63833230696661], [13.15884932371539, 38.63618691165178], [13.19180830809039, 38.63618691165178], [13.19180830809039, 38.63833230696661], [13.20004805418414, 38.63833230696661], [13.20004805418414, 38.640477638066635], [13.205541218246642, 38.640477638066635], [13.205541218246642, 38.64262290495074], [13.21103438230914, 38.64262290495074], [13.21103438230914, 38.64476810761786], [13.21378096434039, 38.64476810761786], [13.21378096434039, 38.64691324606691], [13.219274128402892, 38.64691324606691], [13.219274128402892, 38.649058320296795], [13.22476729246539, 38.649058320296795], [13.22476729246539, 38.65120333030643], [13.22751387449664, 38.65120333030643], [13.22751387449664, 38.65334827609474], [13.233007038559142, 38.65334827609474], [13.233007038559142, 38.65549315766064], [13.23575362059039, 38.65549315766064], [13.23575362059039, 38.659782728120874], [13.23850020262164, 38.659782728120874], [13.23850020262164, 38.66192741701305], [13.24399336668414, 38.66192741701305], [13.24399336668414, 38.66407204167847], [13.24673994871539, 38.66407204167847], [13.24673994871539, 38.66621660211608], [13.24948653074664, 38.66621660211608], [13.24948653074664, 38.66836109832478], [13.25223311277789, 38.66836109832478], [13.25223311277789, 38.67050553030351], [13.25497969480914, 38.67050553030351], [13.25497969480914, 38.676938440848964], [13.257726276840389, 38.676938440848964], [13.257726276840389, 38.68337077328572], [13.260472858871639, 38.68337077328572], [13.260472858871639, 38.68551475562435], [13.263219440902892, 38.68551475562435], [13.263219440902892, 38.69194631720421], [13.26596602293414, 38.69194631720421], [13.26596602293414, 38.70052083325323], [13.268712604965392, 38.70052083325323], [13.268712604965392, 38.70909432136395], [13.26596602293414, 38.70909432136395], [13.26596602293414, 38.72409545187461], [13.263219440902892, 38.72409545187461], [13.263219440902892, 38.73052354396008], [13.260472858871639, 38.73052354396008], [13.260472858871639, 38.73695105769526], [13.257726276840389, 38.73695105769526], [13.257726276840389, 38.73909343374636], [13.25497969480914, 38.73909343374636], [13.25497969480914, 38.741235745532045], [13.25223311277789, 38.741235745532045], [13.25223311277789, 38.743377993051254], [13.24948653074664, 38.743377993051254], [13.24948653074664, 38.745520176302904], [13.24673994871539, 38.745520176302904], [13.24673994871539, 38.74980434999927], [13.24399336668414, 38.74980434999927], [13.24399336668414, 38.75194634044186], [13.24124678465289, 38.75194634044186], [13.24124678465289, 38.75408826661264], [13.23850020262164, 38.75408826661264], [13.23850020262164, 38.756230128510545], [13.23575362059039, 38.756230128510545], [13.23575362059039, 38.758371926134494], [13.23026045652789, 38.758371926134494], [13.23026045652789, 38.76051365948343], [13.22202071043414, 38.76051365948343], [13.22202071043414, 38.7626553285563], [13.219274128402892, 38.7626553285563], [13.219274128402892, 38.764796933352024], [13.21103438230914, 38.764796933352024], [13.21103438230914, 38.76693847386955], [13.205541218246642, 38.76693847386955], [13.205541218246642, 38.76907995010783], [13.197301472152889, 38.76907995010783], [13.197301472152889, 38.771221362065766], [13.16708906980914, 38.771221362065766]], [[12.97208174559039, 38.73266611280105], [12.97208174559039, 38.73052354396008], [12.969335163559139, 38.73052354396008], [12.969335163559139, 38.717666781467685], [12.97208174559039, 38.717666781467685], [12.97208174559039, 38.71338067992099], [12.97482832762164, 38.71338067992099], [12.97482832762164, 38.70909432136395], [12.977574909652892, 38.70909432136395], [12.977574909652892, 38.70695104570924], [12.980321491684142, 38.70695104570924], [12.980321491684142, 38.7026643016528], [12.98306807371539, 38.7026643016528], [12.98306807371539, 38.70052083325323], [12.98581465574664, 38.70052083325323], [12.98581465574664, 38.698377300607504], [12.98856123777789, 38.698377300607504], [12.98856123777789, 38.696233703716715], [12.991307819809142, 38.696233703716715], [12.991307819809142, 38.68765867372435], [12.99405440184039, 38.68765867372435], [12.99405440184039, 38.681226726709575], [12.99680098387164, 38.681226726709575], [12.99680098387164, 38.67908261589697], [13.00229414793414, 38.67908261589697], [13.00229414793414, 38.676938440848964], [13.00778731199664, 38.676938440848964], [13.00778731199664, 38.67479420156668], [13.02152022215289, 38.67479420156668], [13.02152022215289, 38.67908261589697], [13.018773640121639, 38.67908261589697], [13.018773640121639, 38.681226726709575], [13.01328047605914, 38.681226726709575], [13.01328047605914, 38.68551475562435], [13.01053389402789, 38.68551475562435], [13.01053389402789, 38.68980252758466], [13.00778731199664, 38.68980252758466], [13.00778731199664, 38.69194631720421], [13.00504072996539, 38.69194631720421], [13.00504072996539, 38.696233703716715], [13.00229414793414, 38.696233703716715], [13.00229414793414, 38.70052083325323], [12.99954756590289, 38.70052083325323], [12.99954756590289, 38.704807705805166], [12.99680098387164, 38.704807705805166], [12.99680098387164, 38.70695104570924], [12.99405440184039, 38.70695104570924], [12.99405440184039, 38.70909432136395], [12.991307819809142, 38.70909432136395], [12.991307819809142, 38.71123753276822], [12.98856123777789, 38.71123753276822], [12.98856123777789, 38.71338067992099], [12.98581465574664, 38.71338067992099], [12.98581465574664, 38.71552376282115], [12.98306807371539, 38.71552376282115], [12.98306807371539, 38.717666781467685], [12.980321491684142, 38.717666781467685], [12.980321491684142, 38.7262382134958], [12.977574909652892, 38.7262382134958], [12.977574909652892, 38.73052354396008], [12.97482832762164, 38.73052354396008], [12.97482832762164, 38.73266611280105], [12.97208174559039, 38.73266611280105]], [[13.38956221434039, 38.68980252758466], [13.38956221434039, 38.676938440848964], [13.39230879637164, 38.676938440848964], [13.39230879637164, 38.67479420156668], [13.39505537840289, 38.67479420156668], [13.39505537840289, 38.676938440848964], [13.39780196043414, 38.676938440848964], [13.39780196043414, 38.68765867372435], [13.39505537840289, 38.68765867372435], [13.39505537840289, 38.68980252758466], [13.38956221434039, 38.68980252758466]], [[13.436254108871642, 38.68337077328572], [13.436254108871642, 38.676938440848964], [13.43900069090289, 38.676938440848964], [13.43900069090289, 38.68337077328572], [13.436254108871642, 38.68337077328572]], [[13.44449385496539, 38.65549315766064], [13.44449385496539, 38.65120333030643], [13.44174727293414, 38.65120333030643], [13.44174727293414, 38.649058320296795], [13.433507526840392, 38.649058320296795], [13.433507526840392, 38.64476810761786], [13.430760944809142, 38.64476810761786], [13.430760944809142, 38.640477638066635], [13.433507526840392, 38.640477638066635], [13.433507526840392, 38.63833230696661], [13.44449385496539, 38.63833230696661], [13.44449385496539, 38.640477638066635], [13.447240436996642, 38.640477638066635], [13.447240436996642, 38.65549315766064], [13.44449385496539, 38.65549315766064]], [[13.38956221434039, 38.57608977603896], [13.38956221434039, 38.57394251896832], [13.38681563230914, 38.57394251896832], [13.38681563230914, 38.5717951977156], [13.39505537840289, 38.5717951977156], [13.39505537840289, 38.57608977603896], [13.38956221434039, 38.57608977603896]], [[13.348363483871642, 38.54387418136199], [13.348363483871642, 38.54172596167574], [13.342870319809142, 38.54172596167574], [13.342870319809142, 38.53742932980766], [13.351110065902889, 38.53742932980766], [13.351110065902889, 38.53957767782393], [13.353856647934142, 38.53957767782393], [13.353856647934142, 38.54172596167574], [13.351110065902889, 38.54172596167574], [13.351110065902889, 38.54387418136199], [13.348363483871642, 38.54387418136199]], [[13.27695235105914, 38.50734572093069], [13.27695235105914, 38.50304703608306], [13.28519209715289, 38.50304703608306], [13.28519209715289, 38.50734572093069], [13.27695235105914, 38.50734572093069]], [[13.279698933090392, 38.421323283457376], [13.279698933090392, 38.417019468654736], [13.282445515121642, 38.417019468654736], [13.282445515121642, 38.421323283457376], [13.279698933090392, 38.421323283457376]], [[12.55185469480914, 38.3351982810293], [12.55185469480914, 38.330889339874744], [12.55734785887164, 38.330889339874744], [12.55734785887164, 38.33304384248035], [12.56009444090289, 38.33304384248035], [12.56009444090289, 38.3351982810293], [12.55185469480914, 38.3351982810293]], [[12.46671065184039, 38.28131810293689], [12.46671065184039, 38.27700595966461], [12.47220381590289, 38.27700595966461], [12.47220381590289, 38.28131810293689], [12.46671065184039, 38.28131810293689]]]}}, {\"id\": \"12\", \"type\": \"Feature\", \"properties\": {\"raster_val\": 255.0}, \"geometry\": {\"type\": \"Polygon\", \"coordinates\": [[[12.46671065184039, 38.28131810293689], [12.46671065184039, 38.27700595966461], [12.47220381590289, 38.27700595966461], [12.47220381590289, 38.28131810293689], [12.46671065184039, 38.28131810293689]]]}}]}", "n_shapes_geojson": 13}
10
  },
11
  "north_america": {
12
- "input": {"bbox": [[49.53954473880011, -114.92804657771731], [44.4181712985029, -126.17804657771732]], "prompt": [{"type": "point", "data": [944, 512], "label": 0}], "zoom": 7, "model_name": "fastsam"},
13
- "output": {"n_predictions": 1, "geojson": "{\"type\": \"FeatureCollection\", \"features\": [{\"id\": \"0\", \"type\": \"Feature\", \"properties\": {\"raster_val\": 255.0}, \"geometry\": {\"type\": \"Polygon\", \"coordinates\": [[[-115.8399118120923, 45.94359183119402], [-115.8399118120923, 45.93595178326135], [-115.8289254839673, 45.93595178326135], [-115.8289254839673, 45.94359183119402], [-115.8399118120923, 45.94359183119402]]]}}, {\"id\": \"1\", \"type\": \"Feature\", \"properties\": {\"raster_val\": 255.0}, \"geometry\": {\"type\": \"Polygon\", \"coordinates\": [[[-115.96076142146731, 45.920668529170115], [-115.93878876521731, 45.920668529170115], [-115.93878876521731, 45.90538106405045], [-115.97174774959231, 45.90538106405045], [-115.97174774959231, 45.91302532299335], [-115.96076142146731, 45.91302532299335], [-115.96076142146731, 45.920668529170115]]]}}, {\"id\": \"2\", \"type\": \"Feature\", \"properties\": {\"raster_val\": 255.0}, \"geometry\": {\"type\": \"Polygon\", \"coordinates\": [[[-115.66413056209231, 45.805909892118876], [-115.6531442339673, 45.805909892118876], [-115.6531442339673, 45.78292973772045], [-115.64215790584231, 45.78292973772045], [-115.64215790584231, 45.721602997501904], [-115.6531442339673, 45.721602997501904], [-115.6531442339673, 45.70626078292362], [-115.68610321834232, 45.70626078292362], [-115.68610321834232, 45.759940107153334], [-115.67511689021731, 45.759940107153334], [-115.67511689021731, 45.79059084208394], [-115.66413056209231, 45.79059084208394], [-115.66413056209231, 45.805909892118876]]]}}, {\"id\": \"3\", \"type\": \"Feature\", \"properties\": {\"raster_val\": 255.0}, \"geometry\": {\"type\": \"Polygon\", \"coordinates\": [[[-115.98273407771732, 45.874793500440425], [-115.81793915584231, 45.874793500440425], [-115.81793915584231, 45.859493401810326], [-115.80695282771732, 45.859493401810326], [-115.80695282771732, 45.82122473061687], [-115.7959664995923, 45.82122473061687], [-115.7959664995923, 45.805909892118876], [-115.78498017146728, 45.805909892118876], [-115.78498017146728, 45.798250893547475], [-115.77399384334231, 45.798250893547475], [-115.77399384334231, 45.79059084208394], [-115.7630075152173, 45.79059084208394], [-115.7630075152173, 45.77526758044928], [-115.75202118709231, 45.77526758044928], [-115.75202118709231, 45.759940107153334], [-115.74103485896731, 45.759940107153334], [-115.74103485896731, 45.75227479111346], [-115.7300485308423, 45.75227479111346], [-115.7300485308423, 45.7369410002127], [-115.7190622027173, 45.7369410002127], [-115.7190622027173, 45.721602997501904], [-115.70807587459231, 45.721602997501904], [-115.70807587459231, 45.71393241669974], [-115.6970895464673, 45.71393241669974], [-115.6970895464673, 45.69858809616658], [-115.7190622027173, 45.69858809616658], [-115.7190622027173, 45.69091435642167], [-115.7300485308423, 45.69091435642167], [-115.7300485308423, 45.675563717941], [-115.74103485896731, 45.675563717941], [-115.74103485896731, 45.629486530094276], [-115.75202118709231, 45.629486530094276], [-115.75202118709231, 45.6141190431723], [-115.7630075152173, 45.6141190431723], [-115.7630075152173, 45.54491322492361], [-115.77399384334231, 45.54491322492361], [-115.77399384334231, 45.537218424084266], [-115.7959664995923, 45.537218424084266], [-115.7959664995923, 45.52952257012911], [-115.80695282771732, 45.52952257012911], [-115.80695282771732, 45.52182566305287], [-115.8399118120923, 45.52182566305287], [-115.8399118120923, 45.514127702850345], [-115.9937204058423, 45.514127702850345], [-115.9937204058423, 45.52182566305287], [-116.00470673396731, 45.52182566305287], [-116.00470673396731, 45.537218424084266], [-116.0156930620923, 45.537218424084266], [-116.0156930620923, 45.59874734401439], [-116.00470673396731, 45.59874734401439], [-116.00470673396731, 45.606433720125864], [-116.0156930620923, 45.606433720125864], [-116.0156930620923, 45.62180331315974], [-116.0266793902173, 45.62180331315974], [-116.0266793902173, 45.675563717941], [-116.03766571834231, 45.675563717941], [-116.03766571834231, 45.68323956368207], [-116.04865204646731, 45.68323956368207], [-116.04865204646731, 45.69091435642167], [-116.09259735896732, 45.69091435642167], [-116.09259735896732, 45.69858809616658], [-116.10358368709232, 45.69858809616658], [-116.10358368709232, 45.70626078292362], [-116.11457001521731, 45.70626078292362], [-116.11457001521731, 45.721602997501904], [-116.10358368709232, 45.721602997501904], [-116.10358368709232, 45.729272525337166], [-116.11457001521731, 45.729272525337166], [-116.11457001521731, 45.75227479111346], [-116.1255563433423, 45.75227479111346], [-116.1255563433423, 45.759940107153334], [-116.1365426714673, 45.759940107153334], [-116.1365426714673, 45.78292973772045], [-116.1255563433423, 45.78292973772045], [-116.1255563433423, 45.813567837806026], [-116.11457001521731, 45.813567837806026], [-116.11457001521731, 45.82122473061687], [-116.10358368709232, 45.82122473061687], [-116.10358368709232, 45.85184177325902], [-116.07062470271731, 45.85184177325902], [-116.07062470271731, 45.82122473061687], [-116.0596383745923, 45.82122473061687], [-116.0596383745923, 45.813567837806026], [-116.00470673396731, 45.813567837806026], [-116.00470673396731, 45.8441890918723], [-116.0156930620923, 45.8441890918723], [-116.0156930620923, 45.85184177325902], [-116.00470673396731, 45.85184177325902], [-116.00470673396731, 45.859493401810326], [-115.9937204058423, 45.859493401810326], [-115.9937204058423, 45.86714397753464], [-115.98273407771732, 45.86714397753464], [-115.98273407771732, 45.874793500440425]]]}}, {\"id\": \"4\", \"type\": \"Feature\", \"properties\": {\"raster_val\": 0.0}, \"geometry\": {\"type\": \"Polygon\", \"coordinates\": [[[-126.17804657771732, 49.53954473880013], [-126.17804657771732, 44.418171298502884], [-114.92804657771731, 44.418171298502884], [-114.92804657771731, 49.53954473880013], [-126.17804657771732, 49.53954473880013]], [[-115.8399118120923, 45.94359183119402], [-115.8399118120923, 45.93595178326135], [-115.8289254839673, 45.93595178326135], [-115.8289254839673, 45.94359183119402], [-115.8399118120923, 45.94359183119402]], [[-115.96076142146731, 45.920668529170115], [-115.96076142146731, 45.91302532299335], [-115.97174774959231, 45.91302532299335], [-115.97174774959231, 45.90538106405045], [-115.93878876521731, 45.90538106405045], [-115.93878876521731, 45.920668529170115], [-115.96076142146731, 45.920668529170115]], [[-115.98273407771732, 45.874793500440425], [-115.98273407771732, 45.86714397753464], [-115.9937204058423, 45.86714397753464], [-115.9937204058423, 45.859493401810326], [-116.00470673396731, 45.859493401810326], [-116.00470673396731, 45.85184177325902], [-116.0156930620923, 45.85184177325902], [-116.0156930620923, 45.8441890918723], [-116.00470673396731, 45.8441890918723], [-116.00470673396731, 45.813567837806026], [-116.0596383745923, 45.813567837806026], [-116.0596383745923, 45.82122473061687], [-116.07062470271731, 45.82122473061687], [-116.07062470271731, 45.85184177325902], [-116.10358368709232, 45.85184177325902], [-116.10358368709232, 45.82122473061687], [-116.11457001521731, 45.82122473061687], [-116.11457001521731, 45.813567837806026], [-116.1255563433423, 45.813567837806026], [-116.1255563433423, 45.78292973772045], [-116.1365426714673, 45.78292973772045], [-116.1365426714673, 45.759940107153334], [-116.1255563433423, 45.759940107153334], [-116.1255563433423, 45.75227479111346], [-116.11457001521731, 45.75227479111346], [-116.11457001521731, 45.729272525337166], [-116.10358368709232, 45.729272525337166], [-116.10358368709232, 45.721602997501904], [-116.11457001521731, 45.721602997501904], [-116.11457001521731, 45.70626078292362], [-116.10358368709232, 45.70626078292362], [-116.10358368709232, 45.69858809616658], [-116.09259735896732, 45.69858809616658], [-116.09259735896732, 45.69091435642167], [-116.04865204646731, 45.69091435642167], [-116.04865204646731, 45.68323956368207], [-116.03766571834231, 45.68323956368207], [-116.03766571834231, 45.675563717941], [-116.0266793902173, 45.675563717941], [-116.0266793902173, 45.62180331315974], [-116.0156930620923, 45.62180331315974], [-116.0156930620923, 45.606433720125864], [-116.00470673396731, 45.606433720125864], [-116.00470673396731, 45.59874734401439], [-116.0156930620923, 45.59874734401439], [-116.0156930620923, 45.537218424084266], [-116.00470673396731, 45.537218424084266], [-116.00470673396731, 45.52182566305287], [-115.9937204058423, 45.52182566305287], [-115.9937204058423, 45.514127702850345], [-115.8399118120923, 45.514127702850345], [-115.8399118120923, 45.52182566305287], [-115.80695282771732, 45.52182566305287], [-115.80695282771732, 45.52952257012911], [-115.7959664995923, 45.52952257012911], [-115.7959664995923, 45.537218424084266], [-115.77399384334231, 45.537218424084266], [-115.77399384334231, 45.54491322492361], [-115.7630075152173, 45.54491322492361], [-115.7630075152173, 45.6141190431723], [-115.75202118709231, 45.6141190431723], [-115.75202118709231, 45.629486530094276], [-115.74103485896731, 45.629486530094276], [-115.74103485896731, 45.675563717941], [-115.7300485308423, 45.675563717941], [-115.7300485308423, 45.69091435642167], [-115.7190622027173, 45.69091435642167], [-115.7190622027173, 45.69858809616658], [-115.6970895464673, 45.69858809616658], [-115.6970895464673, 45.71393241669974], [-115.70807587459231, 45.71393241669974], [-115.70807587459231, 45.721602997501904], [-115.7190622027173, 45.721602997501904], [-115.7190622027173, 45.7369410002127], [-115.7300485308423, 45.7369410002127], [-115.7300485308423, 45.75227479111346], [-115.74103485896731, 45.75227479111346], [-115.74103485896731, 45.759940107153334], [-115.75202118709231, 45.759940107153334], [-115.75202118709231, 45.77526758044928], [-115.7630075152173, 45.77526758044928], [-115.7630075152173, 45.79059084208394], [-115.77399384334231, 45.79059084208394], [-115.77399384334231, 45.798250893547475], [-115.78498017146728, 45.798250893547475], [-115.78498017146728, 45.805909892118876], [-115.7959664995923, 45.805909892118876], [-115.7959664995923, 45.82122473061687], [-115.80695282771732, 45.82122473061687], [-115.80695282771732, 45.859493401810326], [-115.81793915584231, 45.859493401810326], [-115.81793915584231, 45.874793500440425], [-115.98273407771732, 45.874793500440425]], [[-115.66413056209231, 45.805909892118876], [-115.66413056209231, 45.79059084208394], [-115.67511689021731, 45.79059084208394], [-115.67511689021731, 45.759940107153334], [-115.68610321834232, 45.759940107153334], [-115.68610321834232, 45.70626078292362], [-115.6531442339673, 45.70626078292362], [-115.6531442339673, 45.721602997501904], [-115.64215790584231, 45.721602997501904], [-115.64215790584231, 45.78292973772045], [-115.6531442339673, 45.78292973772045], [-115.6531442339673, 45.805909892118876], [-115.66413056209231, 45.805909892118876]]]}}]}", "n_shapes_geojson": 5}
14
  },
15
  "oceania": {
16
- "input": {"bbox": [[-1.4939713066293112, 155.30273437500003], [-52.32191088594772, 65.30273437500001]], "prompt": [{"type": "point", "data": [934, 515], "label": 0}], "zoom": 4, "model_name": "fastsam"},
17
- "output": {"n_predictions": 1, "geojson": "{\"type\": \"FeatureCollection\", \"features\": [{\"id\": \"0\", \"type\": \"Feature\", \"properties\": {\"raster_val\": 255.0}, \"geometry\": {\"type\": \"Polygon\", \"coordinates\": [[[144.4921875, -40.178873314346966], [144.4921875, -40.245991504199026], [144.580078125, -40.245991504199026], [144.580078125, -40.178873314346966], [144.4921875, -40.178873314346966]]]}}, {\"id\": \"1\", \"type\": \"Feature\", \"properties\": {\"raster_val\": 255.0}, \"geometry\": {\"type\": \"Polygon\", \"coordinates\": [[[148.18359375, -39.909736234537185], [148.447265625, -39.909736234537185], [148.447265625, -40.178873314346966], [148.53515625, -40.178873314346966], [148.53515625, -40.51379915504414], [148.623046875, -40.51379915504414], [148.623046875, -40.78054143186032], [148.7109375, -40.78054143186032], [148.7109375, -41.112468789180866], [148.623046875, -41.112468789180866], [148.623046875, -41.44272637767212], [148.7109375, -41.44272637767212], [148.7109375, -41.508577297439345], [148.623046875, -41.508577297439345], [148.623046875, -42.682435398386225], [148.53515625, -42.682435398386225], [148.53515625, -43.004647127794435], [148.447265625, -43.004647127794435], [148.447265625, -43.197167282501276], [148.359375, -43.197167282501276], [148.359375, -43.32517767999296], [148.27148437500003, -43.32517767999296], [148.27148437500003, -43.45291889355466], [148.18359375, -43.45291889355466], [148.18359375, -43.516688535029076], [148.095703125, -43.516688535029076], [148.095703125, -43.58039085560785], [147.919921875, -43.58039085560785], [147.919921875, -43.6440258476995], [147.83203125, -43.6440258476995], [147.83203125, -43.70759350405295], [147.74414062500003, -43.70759350405295], [147.74414062500003, -43.77109381775651], [147.568359375, -43.77109381775651], [147.568359375, -43.834526782236836], [147.48046875000003, -43.834526782236836], [147.48046875000003, -43.89789239125797], [147.3046875, -43.89789239125797], [147.3046875, -43.96119063892026], [147.12890625, -43.96119063892026], [147.12890625, -44.02442151965934], [146.6015625, -44.02442151965934], [146.6015625, -43.96119063892026], [146.25, -43.96119063892026], [146.25, -43.89789239125797], [146.07421875000003, -43.89789239125797], [146.07421875000003, -43.834526782236836], [145.986328125, -43.834526782236836], [145.986328125, -43.77109381775651], [145.8984375, -43.77109381775651], [145.8984375, -43.70759350405295], [145.810546875, -43.70759350405295], [145.810546875, -43.6440258476995], [145.72265625, -43.6440258476995], [145.72265625, -43.58039085560785], [145.634765625, -43.58039085560785], [145.634765625, -43.45291889355466], [145.54687500000003, -43.45291889355466], [145.54687500000003, -43.38908193911751], [145.458984375, -43.38908193911751], [145.458984375, -43.261206124799784], [145.37109375000003, -43.261206124799784], [145.37109375000003, -43.197167282501276], [145.283203125, -43.197167282501276], [145.283203125, -43.068887774169625], [145.1953125, -43.068887774169625], [145.1953125, -42.94033923363183], [145.107421875, -42.94033923363183], [145.107421875, -42.8115217450979], [145.01953125, -42.8115217450979], [145.01953125, -42.61779143282346], [144.931640625, -42.61779143282346], [144.931640625, -42.29356419217009], [144.84375000000003, -42.29356419217009], [144.84375000000003, -41.83682786072714], [144.755859375, -41.83682786072714], [144.755859375, -41.771311679764075], [144.66796875000003, -41.771311679764075], [144.66796875000003, -41.64007838467893], [144.580078125, -41.64007838467893], [144.580078125, -41.508577297439345], [144.4921875, -41.508577297439345], [144.4921875, -41.17865397233169], [144.404296875, -41.17865397233169], [144.404296875, -40.91351257612758], [144.31640625, -40.91351257612758], [144.31640625, -40.78054143186032], [144.228515625, -40.78054143186032], [144.228515625, -40.64730356252252], [144.31640625, -40.64730356252252], [144.31640625, -40.580584664127635], [144.404296875, -40.580584664127635], [144.404296875, -40.51379915504414], [144.4921875, -40.51379915504414], [144.4921875, -40.4469470596005], [144.66796875000003, -40.4469470596005], [144.66796875000003, -40.51379915504414], [145.107421875, -40.51379915504414], [145.107421875, -40.580584664127635], [145.458984375, -40.580584664127635], [145.458984375, -40.64730356252252], [145.634765625, -40.64730356252252], [145.634765625, -40.71395582628605], [145.72265625, -40.71395582628605], [145.72265625, -40.78054143186032], [145.8984375, -40.78054143186032], [145.8984375, -40.847060356071225], [146.07421875000003, -40.847060356071225], [146.07421875000003, -40.91351257612758], [146.689453125, -40.91351257612758], [146.689453125, -40.847060356071225], [146.953125, -40.847060356071225], [146.953125, -40.78054143186032], [147.12890625, -40.78054143186032], [147.12890625, -40.71395582628605], [147.3046875, -40.71395582628605], [147.3046875, -40.64730356252252], [147.392578125, -40.64730356252252], [147.392578125, -40.580584664127635], [147.568359375, -40.580584664127635], [147.568359375, -40.51379915504414], [147.919921875, -40.51379915504414], [147.919921875, -40.11168866559596], [148.0078125, -40.11168866559596], [148.0078125, -39.97712009843964], [148.18359375, -39.97712009843964], [148.18359375, -39.909736234537185]]]}}, {\"id\": \"2\", \"type\": \"Feature\", \"properties\": {\"raster_val\": 0.0}, \"geometry\": {\"type\": \"Polygon\", \"coordinates\": [[[65.30273437500001, -1.4939713066293043], [65.30273437500001, -52.32191088594773], [155.302734375, -52.32191088594773], [155.302734375, -1.4939713066293043], [65.30273437500001, -1.4939713066293043]], [[148.18359375, -39.909736234537185], [148.18359375, -39.97712009843964], [148.0078125, -39.97712009843964], [148.0078125, -40.11168866559596], [147.919921875, -40.11168866559596], [147.919921875, -40.51379915504414], [147.568359375, -40.51379915504414], [147.568359375, -40.580584664127635], [147.392578125, -40.580584664127635], [147.392578125, -40.64730356252252], [147.3046875, -40.64730356252252], [147.3046875, -40.71395582628605], [147.12890625, -40.71395582628605], [147.12890625, -40.78054143186032], [146.953125, -40.78054143186032], [146.953125, -40.847060356071225], [146.689453125, -40.847060356071225], [146.689453125, -40.91351257612758], [146.07421875000003, -40.91351257612758], [146.07421875000003, -40.847060356071225], [145.8984375, -40.847060356071225], [145.8984375, -40.78054143186032], [145.72265625, -40.78054143186032], [145.72265625, -40.71395582628605], [145.634765625, -40.71395582628605], [145.634765625, -40.64730356252252], [145.458984375, -40.64730356252252], [145.458984375, -40.580584664127635], [145.107421875, -40.580584664127635], [145.107421875, -40.51379915504414], [144.66796875000003, -40.51379915504414], [144.66796875000003, -40.4469470596005], [144.4921875, -40.4469470596005], [144.4921875, -40.51379915504414], [144.404296875, -40.51379915504414], [144.404296875, -40.580584664127635], [144.31640625, -40.580584664127635], [144.31640625, -40.64730356252252], [144.228515625, -40.64730356252252], [144.228515625, -40.78054143186032], [144.31640625, -40.78054143186032], [144.31640625, -40.91351257612758], [144.404296875, -40.91351257612758], [144.404296875, -41.17865397233169], [144.4921875, -41.17865397233169], [144.4921875, -41.508577297439345], [144.580078125, -41.508577297439345], [144.580078125, -41.64007838467893], [144.66796875000003, -41.64007838467893], [144.66796875000003, -41.771311679764075], [144.755859375, -41.771311679764075], [144.755859375, -41.83682786072714], [144.84375000000003, -41.83682786072714], [144.84375000000003, -42.29356419217009], [144.931640625, -42.29356419217009], [144.931640625, -42.61779143282346], [145.01953125, -42.61779143282346], [145.01953125, -42.8115217450979], [145.107421875, -42.8115217450979], [145.107421875, -42.94033923363183], [145.1953125, -42.94033923363183], [145.1953125, -43.068887774169625], [145.283203125, -43.068887774169625], [145.283203125, -43.197167282501276], [145.37109375000003, -43.197167282501276], [145.37109375000003, -43.261206124799784], [145.458984375, -43.261206124799784], [145.458984375, -43.38908193911751], [145.54687500000003, -43.38908193911751], [145.54687500000003, -43.45291889355466], [145.634765625, -43.45291889355466], [145.634765625, -43.58039085560785], [145.72265625, -43.58039085560785], [145.72265625, -43.6440258476995], [145.810546875, -43.6440258476995], [145.810546875, -43.70759350405295], [145.8984375, -43.70759350405295], [145.8984375, -43.77109381775651], [145.986328125, -43.77109381775651], [145.986328125, -43.834526782236836], [146.07421875000003, -43.834526782236836], [146.07421875000003, -43.89789239125797], [146.25, -43.89789239125797], [146.25, -43.96119063892026], [146.6015625, -43.96119063892026], [146.6015625, -44.02442151965934], [147.12890625, -44.02442151965934], [147.12890625, -43.96119063892026], [147.3046875, -43.96119063892026], [147.3046875, -43.89789239125797], [147.48046875000003, -43.89789239125797], [147.48046875000003, -43.834526782236836], [147.568359375, -43.834526782236836], [147.568359375, -43.77109381775651], [147.74414062500003, -43.77109381775651], [147.74414062500003, -43.70759350405295], [147.83203125, -43.70759350405295], [147.83203125, -43.6440258476995], [147.919921875, -43.6440258476995], [147.919921875, -43.58039085560785], [148.095703125, -43.58039085560785], [148.095703125, -43.516688535029076], [148.18359375, -43.516688535029076], [148.18359375, -43.45291889355466], [148.27148437500003, -43.45291889355466], [148.27148437500003, -43.32517767999296], [148.359375, -43.32517767999296], [148.359375, -43.197167282501276], [148.447265625, -43.197167282501276], [148.447265625, -43.004647127794435], [148.53515625, -43.004647127794435], [148.53515625, -42.682435398386225], [148.623046875, -42.682435398386225], [148.623046875, -41.508577297439345], [148.7109375, -41.508577297439345], [148.7109375, -41.44272637767212], [148.623046875, -41.44272637767212], [148.623046875, -41.112468789180866], [148.7109375, -41.112468789180866], [148.7109375, -40.78054143186032], [148.623046875, -40.78054143186032], [148.623046875, -40.51379915504414], [148.53515625, -40.51379915504414], [148.53515625, -40.178873314346966], [148.447265625, -40.178873314346966], [148.447265625, -39.909736234537185], [148.18359375, -39.909736234537185]], [[144.4921875, -40.178873314346966], [144.4921875, -40.245991504199026], [144.580078125, -40.245991504199026], [144.580078125, -40.178873314346966], [144.4921875, -40.178873314346966]]]}}]}", "n_shapes_geojson": 3}
18
  },
19
  "south_america": {
20
- "input": {"bbox": [[-24.497000385294886, -63.9627693090703], [-31.13746600345626, -75.21276930907031]], "prompt": [{"type": "point", "data": [949, 560], "label": 0}], "zoom": 7, "model_name": "fastsam"},
21
- "output": {"n_predictions": 1, "geojson": "{\"type\": \"FeatureCollection\", \"features\": [{\"id\": \"0\", \"type\": \"Feature\", \"properties\": {\"raster_val\": 255.0}, \"geometry\": {\"type\": \"Polygon\", \"coordinates\": [[[-64.83068923094531, -29.773774668750825], [-64.7867439184453, -29.773774668750825], [-64.7867439184453, -29.78331026883487], [-64.76477126219531, -29.78331026883487], [-64.76477126219531, -29.792844960743082], [-64.7427986059453, -29.792844960743082], [-64.7427986059453, -29.802378744297915], [-64.7208259496953, -29.802378744297915], [-64.7208259496953, -29.811911619321986], [-64.70983962157031, -29.811911619321986], [-64.70983962157031, -29.821443585638004], [-64.69885329344531, -29.821443585638004], [-64.69885329344531, -29.830974643068785], [-64.68786696532031, -29.830974643068785], [-64.68786696532031, -29.850034030566583], [-64.6768806371953, -29.850034030566583], [-64.6768806371953, -29.888141891156998], [-64.6658943090703, -29.888141891156998], [-64.6658943090703, -29.935756237829356], [-64.6549079809453, -29.935756237829356], [-64.6549079809453, -30.01189181128351], [-64.6658943090703, -30.01189181128351], [-64.6658943090703, -30.05944689725857], [-64.6768806371953, -30.05944689725857], [-64.6768806371953, -30.078462539934876], [-64.68786696532031, -30.078462539934876], [-64.68786696532031, -30.097474528113597], [-64.69885329344531, -30.097474528113597], [-64.69885329344531, -30.106979151331732], [-64.70983962157031, -30.106979151331732], [-64.70983962157031, -30.116482860404133], [-64.7208259496953, -30.116482860404133], [-64.7208259496953, -30.12598565515729], [-64.7867439184453, -30.12598565515729], [-64.7867439184453, -30.13548753541778], [-64.83068923094531, -30.13548753541778], [-64.83068923094531, -30.12598565515729], [-64.85266188719531, -30.12598565515729], [-64.85266188719531, -30.116482860404133], [-64.86364821532031, -30.116482860404133], [-64.86364821532031, -30.106979151331732], [-64.8746345434453, -30.106979151331732], [-64.8746345434453, -30.097474528113597], [-64.86364821532031, -30.097474528113597], [-64.86364821532031, -30.078462539934876], [-64.85266188719531, -30.078462539934876], [-64.85266188719531, -29.964313915215214], [-64.86364821532031, -29.964313915215214], [-64.86364821532031, -29.954795600714693], [-64.8746345434453, -29.954795600714693], [-64.8746345434453, -29.964313915215214], [-64.88562087157031, -29.964313915215214], [-64.88562087157031, -29.97383131818705], [-64.8966071996953, -29.97383131818705], [-64.8966071996953, -29.99286338884363], [-64.90759352782031, -29.99286338884363], [-64.90759352782031, -29.97383131818705], [-64.9185798559453, -29.97383131818705], [-64.9185798559453, -29.89766658144029], [-64.90759352782031, -29.89766658144029], [-64.90759352782031, -29.878616290751566], [-64.8966071996953, -29.878616290751566], [-64.8966071996953, -29.869089780400365], [-64.88562087157031, -29.869089780400365], [-64.88562087157031, -29.859562360279842], [-64.8746345434453, -29.859562360279842], [-64.8746345434453, -29.821443585638004], [-64.86364821532031, -29.821443585638004], [-64.86364821532031, -29.792844960743082], [-64.85266188719531, -29.792844960743082], [-64.85266188719531, -29.78331026883487], [-64.83068923094531, -29.78331026883487], [-64.83068923094531, -29.773774668750825]]]}}, {\"id\": \"1\", \"type\": \"Feature\", \"properties\": {\"raster_val\": 0.0}, \"geometry\": {\"type\": \"Polygon\", \"coordinates\": [[[-75.21276930907031, -24.49700038529489], [-75.21276930907031, -31.137466003456268], [-63.962769309070296, -31.137466003456268], [-63.962769309070296, -24.49700038529489], [-75.21276930907031, -24.49700038529489]], [[-64.83068923094531, -29.773774668750825], [-64.83068923094531, -29.78331026883487], [-64.85266188719531, -29.78331026883487], [-64.85266188719531, -29.792844960743082], [-64.86364821532031, -29.792844960743082], [-64.86364821532031, -29.821443585638004], [-64.8746345434453, -29.821443585638004], [-64.8746345434453, -29.859562360279842], [-64.88562087157031, -29.859562360279842], [-64.88562087157031, -29.869089780400365], [-64.8966071996953, -29.869089780400365], [-64.8966071996953, -29.878616290751566], [-64.90759352782031, -29.878616290751566], [-64.90759352782031, -29.89766658144029], [-64.9185798559453, -29.89766658144029], [-64.9185798559453, -29.97383131818705], [-64.90759352782031, -29.97383131818705], [-64.90759352782031, -29.99286338884363], [-64.8966071996953, -29.99286338884363], [-64.8966071996953, -29.97383131818705], [-64.88562087157031, -29.97383131818705], [-64.88562087157031, -29.964313915215214], [-64.8746345434453, -29.964313915215214], [-64.8746345434453, -29.954795600714693], [-64.86364821532031, -29.954795600714693], [-64.86364821532031, -29.964313915215214], [-64.85266188719531, -29.964313915215214], [-64.85266188719531, -30.078462539934876], [-64.86364821532031, -30.078462539934876], [-64.86364821532031, -30.097474528113597], [-64.8746345434453, -30.097474528113597], [-64.8746345434453, -30.106979151331732], [-64.86364821532031, -30.106979151331732], [-64.86364821532031, -30.116482860404133], [-64.85266188719531, -30.116482860404133], [-64.85266188719531, -30.12598565515729], [-64.83068923094531, -30.12598565515729], [-64.83068923094531, -30.13548753541778], [-64.7867439184453, -30.13548753541778], [-64.7867439184453, -30.12598565515729], [-64.7208259496953, -30.12598565515729], [-64.7208259496953, -30.116482860404133], [-64.70983962157031, -30.116482860404133], [-64.70983962157031, -30.106979151331732], [-64.69885329344531, -30.106979151331732], [-64.69885329344531, -30.097474528113597], [-64.68786696532031, -30.097474528113597], [-64.68786696532031, -30.078462539934876], [-64.6768806371953, -30.078462539934876], [-64.6768806371953, -30.05944689725857], [-64.6658943090703, -30.05944689725857], [-64.6658943090703, -30.01189181128351], [-64.6549079809453, -30.01189181128351], [-64.6549079809453, -29.935756237829356], [-64.6658943090703, -29.935756237829356], [-64.6658943090703, -29.888141891156998], [-64.6768806371953, -29.888141891156998], [-64.6768806371953, -29.850034030566583], [-64.68786696532031, -29.850034030566583], [-64.68786696532031, -29.830974643068785], [-64.69885329344531, -29.830974643068785], [-64.69885329344531, -29.821443585638004], [-64.70983962157031, -29.821443585638004], [-64.70983962157031, -29.811911619321986], [-64.7208259496953, -29.811911619321986], [-64.7208259496953, -29.802378744297915], [-64.7427986059453, -29.802378744297915], [-64.7427986059453, -29.792844960743082], [-64.76477126219531, -29.792844960743082], [-64.76477126219531, -29.78331026883487], [-64.7867439184453, -29.78331026883487], [-64.7867439184453, -29.773774668750825], [-64.83068923094531, -29.773774668750825]]]}}]}", "n_shapes_geojson": 2}
22
  }
23
  }
 
1
  {
2
  "europe": {
3
+ "input": {"matrix": [1524458.6551710723, 152.87405657035242, 0, 4713262.318571913, 0, -152.87405657034492], "bbox": [[38.941268787930234, 15.100695099484655], [38.20690881142876, 13.694445099484655]], "prompt": [{"type": "point", "data": [935, 508], "label": 0}], "zoom": 10, "model_name": "fastsam"},
4
+ "output": {"n_predictions": 1, "geojson": "{\"type\": \"FeatureCollection\", \"features\": [{\"id\": \"0\", \"type\": \"Feature\", \"properties\": {\"raster_val\": 255.0}, \"geometry\": {\"type\": \"Polygon\", \"coordinates\": [[[14.951006378781528, 38.41703050503547], [14.957872833859653, 38.41703050503547], [14.957872833859653, 38.415954511435764], [14.964739288937778, 38.415954511435764], [14.964739288937778, 38.41703050503547], [14.967485870969028, 38.41703050503547], [14.967485870969028, 38.415954511435764], [14.968859161984653, 38.415954511435764], [14.968859161984653, 38.41487850181097], [14.971605744015902, 38.41487850181097], [14.971605744015902, 38.41380247616124], [14.974352326047152, 38.41380247616124], [14.974352326047152, 38.4127264344867], [14.977098908078403, 38.4127264344867], [14.977098908078403, 38.41165037678751], [14.979845490109655, 38.41165037678751], [14.979845490109655, 38.41057430306379], [14.981218781125278, 38.41057430306379], [14.981218781125278, 38.409498213315686], [14.9825920721409, 38.409498213315686], [14.9825920721409, 38.40842210754335], [14.983965363156527, 38.40842210754335], [14.983965363156527, 38.407345985746915], [14.986711945187778, 38.407345985746915], [14.986711945187778, 38.40626984792652], [14.988085236203402, 38.40626984792652], [14.988085236203402, 38.40519369408231], [14.989458527219027, 38.40519369408231], [14.989458527219027, 38.403041338323], [14.990831818234653, 38.403041338323], [14.990831818234653, 38.40196513640818], [14.992205109250278, 38.40196513640818], [14.992205109250278, 38.39981268450894], [14.993578400265905, 38.39981268450894], [14.993578400265905, 38.398736434524785], [14.996324982297153, 38.398736434524785], [14.996324982297153, 38.3976601685178], [14.997698273312777, 38.3976601685178], [14.997698273312777, 38.395507588435926], [14.999071564328402, 38.395507588435926], [14.999071564328402, 38.39443127436131], [15.000444855344028, 38.39443127436131], [15.000444855344028, 38.39012585784163], [15.001818146359653, 38.39012585784163], [15.001818146359653, 38.38582018497476], [15.003191437375277, 38.38582018497476], [15.003191437375277, 38.381514255769794], [15.004564728390903, 38.381514255769794], [15.004564728390903, 38.37936119504334], [15.005938019406528, 38.37936119504334], [15.005938019406528, 38.37828464064962], [15.007311310422155, 38.37828464064962], [15.007311310422155, 38.37397826287474], [15.005938019406528, 38.37397826287474], [15.005938019406528, 38.37290162838174], [15.004564728390903, 38.37290162838174], [15.004564728390903, 38.371824977869295], [15.003191437375277, 38.371824977869295], [15.003191437375277, 38.37074831133756], [15.001818146359653, 38.37074831133756], [15.001818146359653, 38.369671628786676], [15.000444855344028, 38.369671628786676], [15.000444855344028, 38.36859493021679], [14.999071564328402, 38.36859493021679], [14.999071564328402, 38.36751821562803], [14.996324982297153, 38.36751821562803], [14.996324982297153, 38.36644148502056], [14.992205109250278, 38.36644148502056], [14.992205109250278, 38.365364738394504], [14.986711945187778, 38.365364738394504], [14.986711945187778, 38.36644148502056], [14.981218781125278, 38.36644148502056], [14.981218781125278, 38.36751821562803], [14.978472199094028, 38.36751821562803], [14.978472199094028, 38.36859493021679], [14.975725617062777, 38.36859493021679], [14.975725617062777, 38.369671628786676], [14.972979035031528, 38.369671628786676], [14.972979035031528, 38.37074831133756], [14.971605744015902, 38.37074831133756], [14.971605744015902, 38.371824977869295], [14.97023245300028, 38.371824977869295], [14.97023245300028, 38.37290162838174], [14.968859161984653, 38.37290162838174], [14.968859161984653, 38.37397826287474], [14.967485870969028, 38.37397826287474], [14.967485870969028, 38.37505488134817], [14.966112579953402, 38.37505488134817], [14.966112579953402, 38.3761314838019], [14.964739288937778, 38.3761314838019], [14.964739288937778, 38.37720807023576], [14.963365997922153, 38.37720807023576], [14.963365997922153, 38.37828464064962], [14.960619415890902, 38.37828464064962], [14.960619415890902, 38.37936119504334], [14.957872833859653, 38.37936119504334], [14.957872833859653, 38.380437733416784], [14.953752960812778, 38.380437733416784], [14.953752960812778, 38.381514255769794], [14.952379669797152, 38.381514255769794], [14.952379669797152, 38.38259076210225], [14.951006378781528, 38.38259076210225], [14.951006378781528, 38.38366725241398], [14.949633087765903, 38.38366725241398], [14.949633087765903, 38.38582018497476], [14.948259796750277, 38.38582018497476], [14.948259796750277, 38.3890494636571], [14.946886505734652, 38.3890494636571], [14.946886505734652, 38.39120223600446], [14.945513214719025, 38.39120223600446], [14.945513214719025, 38.39227859814544], [14.944139923703403, 38.39227859814544], [14.944139923703403, 38.39443127436131], [14.94276663268778, 38.39443127436131], [14.94276663268778, 38.396583886488145], [14.941393341672153, 38.396583886488145], [14.941393341672153, 38.39981268450894], [14.940020050656528, 38.39981268450894], [14.940020050656528, 38.40196513640818], [14.938646759640902, 38.40196513640818], [14.938646759640902, 38.40411752421441], [14.940020050656528, 38.40411752421441], [14.940020050656528, 38.41165037678751], [14.941393341672153, 38.41165037678751], [14.941393341672153, 38.41380247616124], [14.94276663268778, 38.41380247616124], [14.94276663268778, 38.41487850181097], [14.944139923703403, 38.41487850181097], [14.944139923703403, 38.415954511435764], [14.951006378781528, 38.415954511435764], [14.951006378781528, 38.41703050503547]]]}}, {\"id\": \"1\", \"type\": \"Feature\", \"properties\": {\"raster_val\": 0.0}, \"geometry\": {\"type\": \"Polygon\", \"coordinates\": [[[13.694445099484653, 38.94126878793023], [13.694445099484653, 38.20690881142878], [15.100695099484652, 38.20690881142878], [15.100695099484652, 38.94126878793023], [13.694445099484653, 38.94126878793023]], [[14.951006378781528, 38.41703050503547], [14.951006378781528, 38.415954511435764], [14.944139923703403, 38.415954511435764], [14.944139923703403, 38.41487850181097], [14.94276663268778, 38.41487850181097], [14.94276663268778, 38.41380247616124], [14.941393341672153, 38.41380247616124], [14.941393341672153, 38.41165037678751], [14.940020050656528, 38.41165037678751], [14.940020050656528, 38.40411752421441], [14.938646759640902, 38.40411752421441], [14.938646759640902, 38.40196513640818], [14.940020050656528, 38.40196513640818], [14.940020050656528, 38.39981268450894], [14.941393341672153, 38.39981268450894], [14.941393341672153, 38.396583886488145], [14.94276663268778, 38.396583886488145], [14.94276663268778, 38.39443127436131], [14.944139923703403, 38.39443127436131], [14.944139923703403, 38.39227859814544], [14.945513214719025, 38.39227859814544], [14.945513214719025, 38.39120223600446], [14.946886505734652, 38.39120223600446], [14.946886505734652, 38.3890494636571], [14.948259796750277, 38.3890494636571], [14.948259796750277, 38.38582018497476], [14.949633087765903, 38.38582018497476], [14.949633087765903, 38.38366725241398], [14.951006378781528, 38.38366725241398], [14.951006378781528, 38.38259076210225], [14.952379669797152, 38.38259076210225], [14.952379669797152, 38.381514255769794], [14.953752960812778, 38.381514255769794], [14.953752960812778, 38.380437733416784], [14.957872833859653, 38.380437733416784], [14.957872833859653, 38.37936119504334], [14.960619415890902, 38.37936119504334], [14.960619415890902, 38.37828464064962], [14.963365997922153, 38.37828464064962], [14.963365997922153, 38.37720807023576], [14.964739288937778, 38.37720807023576], [14.964739288937778, 38.3761314838019], [14.966112579953402, 38.3761314838019], [14.966112579953402, 38.37505488134817], [14.967485870969028, 38.37505488134817], [14.967485870969028, 38.37397826287474], [14.968859161984653, 38.37397826287474], [14.968859161984653, 38.37290162838174], [14.97023245300028, 38.37290162838174], [14.97023245300028, 38.371824977869295], [14.971605744015902, 38.371824977869295], [14.971605744015902, 38.37074831133756], [14.972979035031528, 38.37074831133756], [14.972979035031528, 38.369671628786676], [14.975725617062777, 38.369671628786676], [14.975725617062777, 38.36859493021679], [14.978472199094028, 38.36859493021679], [14.978472199094028, 38.36751821562803], [14.981218781125278, 38.36751821562803], [14.981218781125278, 38.36644148502056], [14.986711945187778, 38.36644148502056], [14.986711945187778, 38.365364738394504], [14.992205109250278, 38.365364738394504], [14.992205109250278, 38.36644148502056], [14.996324982297153, 38.36644148502056], [14.996324982297153, 38.36751821562803], [14.999071564328402, 38.36751821562803], [14.999071564328402, 38.36859493021679], [15.000444855344028, 38.36859493021679], [15.000444855344028, 38.369671628786676], [15.001818146359653, 38.369671628786676], [15.001818146359653, 38.37074831133756], [15.003191437375277, 38.37074831133756], [15.003191437375277, 38.371824977869295], [15.004564728390903, 38.371824977869295], [15.004564728390903, 38.37290162838174], [15.005938019406528, 38.37290162838174], [15.005938019406528, 38.37397826287474], [15.007311310422155, 38.37397826287474], [15.007311310422155, 38.37828464064962], [15.005938019406528, 38.37828464064962], [15.005938019406528, 38.37936119504334], [15.004564728390903, 38.37936119504334], [15.004564728390903, 38.381514255769794], [15.003191437375277, 38.381514255769794], [15.003191437375277, 38.38582018497476], [15.001818146359653, 38.38582018497476], [15.001818146359653, 38.39012585784163], [15.000444855344028, 38.39012585784163], [15.000444855344028, 38.39443127436131], [14.999071564328402, 38.39443127436131], [14.999071564328402, 38.395507588435926], [14.997698273312777, 38.395507588435926], [14.997698273312777, 38.3976601685178], [14.996324982297153, 38.3976601685178], [14.996324982297153, 38.398736434524785], [14.993578400265905, 38.398736434524785], [14.993578400265905, 38.39981268450894], [14.992205109250278, 38.39981268450894], [14.992205109250278, 38.40196513640818], [14.990831818234653, 38.40196513640818], [14.990831818234653, 38.403041338323], [14.989458527219027, 38.403041338323], [14.989458527219027, 38.40519369408231], [14.988085236203402, 38.40519369408231], [14.988085236203402, 38.40626984792652], [14.986711945187778, 38.40626984792652], [14.986711945187778, 38.407345985746915], [14.983965363156527, 38.407345985746915], [14.983965363156527, 38.40842210754335], [14.9825920721409, 38.40842210754335], [14.9825920721409, 38.409498213315686], [14.981218781125278, 38.409498213315686], [14.981218781125278, 38.41057430306379], [14.979845490109655, 38.41057430306379], [14.979845490109655, 38.41165037678751], [14.977098908078403, 38.41165037678751], [14.977098908078403, 38.4127264344867], [14.974352326047152, 38.4127264344867], [14.974352326047152, 38.41380247616124], [14.971605744015902, 38.41380247616124], [14.971605744015902, 38.41487850181097], [14.968859161984653, 38.41487850181097], [14.968859161984653, 38.415954511435764], [14.967485870969028, 38.415954511435764], [14.967485870969028, 38.41703050503547], [14.964739288937778, 38.41703050503547], [14.964739288937778, 38.415954511435764], [14.957872833859653, 38.415954511435764], [14.957872833859653, 38.41703050503547], [14.951006378781528, 38.41703050503547]]]}}]}", "n_shapes_geojson": 2}
 
 
 
 
 
5
  },
6
  "north_america": {
7
+ "input": {"matrix": [-13855281.495084189, 1222.9924525628194, 0, 6732573.451358326, 0, -1222.9924525628248], "bbox": [[51.62483746174322, -113.21411132812501], [46.717268685073954, -124.46411132812501]], "prompt": [{"type": "point", "data": [943, 528], "label": 0}], "zoom": 7, "model_name": "fastsam"},
8
+ "output": {"n_predictions": 1, "geojson": "{\"type\": \"FeatureCollection\", \"features\": [{\"id\": \"0\", \"type\": \"Feature\", \"properties\": {\"raster_val\": 255.0}, \"geometry\": {\"type\": \"Polygon\", \"coordinates\": [[[-114.19189453125001, 47.99727386804473], [-114.10400390625001, 47.99727386804473], [-114.10400390625001, 47.98992166741417], [-114.09301757812501, 47.98992166741417], [-114.09301757812501, 47.96050238891508], [-114.10400390625001, 47.96050238891508], [-114.10400390625001, 47.93842692948105], [-114.09301757812501, 47.93842692948105], [-114.09301757812501, 47.87951293397049], [-114.08203125000001, 47.87951293397049], [-114.08203125000001, 47.77625204393234], [-114.071044921875, 47.77625204393234], [-114.071044921875, 47.70976154266638], [-114.08203125000001, 47.70976154266638], [-114.08203125000001, 47.70236846657371], [-114.09301757812501, 47.70236846657371], [-114.09301757812501, 47.69497434186281], [-114.10400390625001, 47.69497434186281], [-114.10400390625001, 47.68757916850812], [-114.13696289062501, 47.68757916850812], [-114.13696289062501, 47.69497434186281], [-114.158935546875, 47.69497434186281], [-114.158935546875, 47.70236846657371], [-114.18090820312501, 47.70236846657371], [-114.18090820312501, 47.70976154266638], [-114.19189453125001, 47.70976154266638], [-114.19189453125001, 47.724544549099654], [-114.20288085937501, 47.724544549099654], [-114.20288085937501, 47.73932336136855], [-114.21386718750001, 47.73932336136855], [-114.21386718750001, 47.74671119475599], [-114.23583984375, 47.74671119475599], [-114.23583984375, 47.75409797968002], [-114.24682617187501, 47.75409797968002], [-114.24682617187501, 47.76148371616668], [-114.2578125, 47.76148371616668], [-114.2578125, 47.78363463526376], [-114.26879882812501, 47.78363463526376], [-114.26879882812501, 47.791016178262595], [-114.27978515625001, 47.791016178262595], [-114.27978515625001, 47.79839667295523], [-114.30175781250001, 47.79839667295523], [-114.30175781250001, 47.82053186746052], [-114.31274414062501, 47.82053186746052], [-114.31274414062501, 47.82790816919328], [-114.30175781250001, 47.82790816919328], [-114.30175781250001, 47.83528342275263], [-114.29077148437501, 47.83528342275263], [-114.29077148437501, 47.842657628165355], [-114.27978515625001, 47.842657628165355], [-114.27978515625001, 47.850030785458266], [-114.26879882812501, 47.850030785458266], [-114.26879882812501, 47.85740289465823], [-114.2578125, 47.85740289465823], [-114.2578125, 47.86477395579223], [-114.24682617187501, 47.86477395579223], [-114.24682617187501, 47.87214396888729], [-114.23583984375, 47.87214396888729], [-114.23583984375, 47.87951293397049], [-114.22485351562503, 47.87951293397049], [-114.22485351562503, 47.89424772020997], [-114.21386718750001, 47.89424772020997], [-114.21386718750001, 47.91634204016117], [-114.20288085937501, 47.91634204016117], [-114.20288085937501, 47.98992166741417], [-114.19189453125001, 47.98992166741417], [-114.19189453125001, 47.99727386804473]]]}}, {\"id\": \"1\", \"type\": \"Feature\", \"properties\": {\"raster_val\": 0.0}, \"geometry\": {\"type\": \"Polygon\", \"coordinates\": [[[-124.46411132812499, 51.62483746174321], [-124.46411132812499, 46.71726868507395], [-113.214111328125, 46.71726868507395], [-113.214111328125, 51.62483746174321], [-124.46411132812499, 51.62483746174321]], [[-114.19189453125001, 47.99727386804473], [-114.19189453125001, 47.98992166741417], [-114.20288085937501, 47.98992166741417], [-114.20288085937501, 47.91634204016117], [-114.21386718750001, 47.91634204016117], [-114.21386718750001, 47.89424772020997], [-114.22485351562503, 47.89424772020997], [-114.22485351562503, 47.87951293397049], [-114.23583984375, 47.87951293397049], [-114.23583984375, 47.87214396888729], [-114.24682617187501, 47.87214396888729], [-114.24682617187501, 47.86477395579223], [-114.2578125, 47.86477395579223], [-114.2578125, 47.85740289465823], [-114.26879882812501, 47.85740289465823], [-114.26879882812501, 47.850030785458266], [-114.27978515625001, 47.850030785458266], [-114.27978515625001, 47.842657628165355], [-114.29077148437501, 47.842657628165355], [-114.29077148437501, 47.83528342275263], [-114.30175781250001, 47.83528342275263], [-114.30175781250001, 47.82790816919328], [-114.31274414062501, 47.82790816919328], [-114.31274414062501, 47.82053186746052], [-114.30175781250001, 47.82053186746052], [-114.30175781250001, 47.79839667295523], [-114.27978515625001, 47.79839667295523], [-114.27978515625001, 47.791016178262595], [-114.26879882812501, 47.791016178262595], [-114.26879882812501, 47.78363463526376], [-114.2578125, 47.78363463526376], [-114.2578125, 47.76148371616668], [-114.24682617187501, 47.76148371616668], [-114.24682617187501, 47.75409797968002], [-114.23583984375, 47.75409797968002], [-114.23583984375, 47.74671119475599], [-114.21386718750001, 47.74671119475599], [-114.21386718750001, 47.73932336136855], [-114.20288085937501, 47.73932336136855], [-114.20288085937501, 47.724544549099654], [-114.19189453125001, 47.724544549099654], [-114.19189453125001, 47.70976154266638], [-114.18090820312501, 47.70976154266638], [-114.18090820312501, 47.70236846657371], [-114.158935546875, 47.70236846657371], [-114.158935546875, 47.69497434186281], [-114.13696289062501, 47.69497434186281], [-114.13696289062501, 47.68757916850812], [-114.10400390625001, 47.68757916850812], [-114.10400390625001, 47.69497434186281], [-114.09301757812501, 47.69497434186281], [-114.09301757812501, 47.70236846657371], [-114.08203125000001, 47.70236846657371], [-114.08203125000001, 47.70976154266638], [-114.071044921875, 47.70976154266638], [-114.071044921875, 47.77625204393234], [-114.08203125000001, 47.77625204393234], [-114.08203125000001, 47.87951293397049], [-114.09301757812501, 47.87951293397049], [-114.09301757812501, 47.93842692948105], [-114.10400390625001, 47.93842692948105], [-114.10400390625001, 47.96050238891508], [-114.09301757812501, 47.96050238891508], [-114.09301757812501, 47.98992166741417], [-114.10400390625001, 47.98992166741417], [-114.10400390625001, 47.99727386804473], [-114.19189453125001, 47.99727386804473]]]}}]}", "n_shapes_geojson": 2}
9
  },
10
  "oceania": {
11
+ "input": {"matrix": [7269467.138033403, 9783.93962050256, 0, -166326.9735485418, 0, -9783.939620502566], "bbox": [[-1.4939713066293112, 155.30273437500003], [-52.32191088594772, 65.30273437500001]], "prompt": [{"type": "point", "data": [934, 511], "label": 0}], "zoom": 4, "model_name": "fastsam"},
12
+ "output": {"n_predictions": 1, "geojson": "{\"type\": \"FeatureCollection\", \"features\": [{\"id\": \"0\", \"type\": \"Feature\", \"properties\": {\"raster_val\": 255.0}, \"geometry\": {\"type\": \"Polygon\", \"coordinates\": [[[148.095703125, -40.11168866559596], [148.447265625, -40.11168866559596], [148.447265625, -40.313043208880906], [148.359375, -40.313043208880906], [148.359375, -40.38002840251183], [148.447265625, -40.38002840251183], [148.447265625, -40.4469470596005], [148.53515625, -40.4469470596005], [148.53515625, -40.580584664127635], [148.623046875, -40.580584664127635], [148.623046875, -40.91351257612758], [148.7109375, -40.91351257612758], [148.7109375, -41.04621681452063], [148.623046875, -41.04621681452063], [148.623046875, -42.682435398386225], [148.53515625, -42.682435398386225], [148.53515625, -43.004647127794435], [148.447265625, -43.004647127794435], [148.447265625, -43.197167282501276], [148.359375, -43.197167282501276], [148.359375, -43.32517767999296], [148.27148437500003, -43.32517767999296], [148.27148437500003, -43.38908193911751], [148.18359375, -43.38908193911751], [148.18359375, -43.516688535029076], [148.0078125, -43.516688535029076], [148.0078125, -43.58039085560785], [147.919921875, -43.58039085560785], [147.919921875, -43.6440258476995], [147.83203125, -43.6440258476995], [147.83203125, -43.70759350405295], [147.74414062500003, -43.70759350405295], [147.74414062500003, -43.77109381775651], [147.568359375, -43.77109381775651], [147.568359375, -43.834526782236836], [147.48046875000003, -43.834526782236836], [147.48046875000003, -43.89789239125797], [147.3046875, -43.89789239125797], [147.3046875, -43.96119063892026], [147.12890625, -43.96119063892026], [147.12890625, -44.02442151965934], [146.6015625, -44.02442151965934], [146.6015625, -43.96119063892026], [146.337890625, -43.96119063892026], [146.337890625, -43.89789239125797], [146.162109375, -43.89789239125797], [146.162109375, -43.834526782236836], [145.986328125, -43.834526782236836], [145.986328125, -43.77109381775651], [145.8984375, -43.77109381775651], [145.8984375, -43.70759350405295], [145.810546875, -43.70759350405295], [145.810546875, -43.6440258476995], [145.72265625, -43.6440258476995], [145.72265625, -43.58039085560785], [145.634765625, -43.58039085560785], [145.634765625, -43.45291889355466], [145.54687500000003, -43.45291889355466], [145.54687500000003, -43.32517767999296], [145.458984375, -43.32517767999296], [145.458984375, -43.261206124799784], [145.37109375000003, -43.261206124799784], [145.37109375000003, -43.197167282501276], [145.283203125, -43.197167282501276], [145.283203125, -43.068887774169625], [145.1953125, -43.068887774169625], [145.1953125, -42.94033923363183], [145.107421875, -42.94033923363183], [145.107421875, -42.8115217450979], [145.01953125, -42.8115217450979], [145.01953125, -42.61779143282346], [144.931640625, -42.61779143282346], [144.931640625, -42.22851735620852], [144.84375000000003, -42.22851735620852], [144.84375000000003, -41.83682786072714], [144.755859375, -41.83682786072714], [144.755859375, -41.70572851523752], [144.66796875000003, -41.70572851523752], [144.66796875000003, -41.64007838467893], [144.580078125, -41.64007838467893], [144.580078125, -41.44272637767212], [144.4921875, -41.44272637767212], [144.4921875, -41.112468789180866], [144.404296875, -41.112468789180866], [144.404296875, -40.847060356071225], [144.31640625, -40.847060356071225], [144.31640625, -40.64730356252252], [144.404296875, -40.64730356252252], [144.404296875, -40.580584664127635], [144.4921875, -40.580584664127635], [144.4921875, -40.51379915504414], [144.84375000000003, -40.51379915504414], [144.84375000000003, -40.580584664127635], [145.37109375000003, -40.580584664127635], [145.37109375000003, -40.64730356252252], [145.54687500000003, -40.64730356252252], [145.54687500000003, -40.71395582628605], [145.72265625, -40.71395582628605], [145.72265625, -40.78054143186032], [145.8984375, -40.78054143186032], [145.8984375, -40.847060356071225], [146.07421875000003, -40.847060356071225], [146.07421875000003, -40.91351257612758], [146.689453125, -40.91351257612758], [146.689453125, -40.847060356071225], [146.953125, -40.847060356071225], [146.953125, -40.78054143186032], [147.12890625, -40.78054143186032], [147.12890625, -40.71395582628605], [147.3046875, -40.71395582628605], [147.3046875, -40.64730356252252], [147.48046875000003, -40.64730356252252], [147.48046875000003, -40.580584664127635], [147.83203125, -40.580584664127635], [147.83203125, -40.51379915504414], [148.0078125, -40.51379915504414], [148.0078125, -40.4469470596005], [148.095703125, -40.4469470596005], [148.095703125, -40.11168866559596]]]}}, {\"id\": \"1\", \"type\": \"Feature\", \"properties\": {\"raster_val\": 0.0}, \"geometry\": {\"type\": \"Polygon\", \"coordinates\": [[[65.30273437500001, -1.4939713066293043], [65.30273437500001, -52.32191088594773], [155.302734375, -52.32191088594773], [155.302734375, -1.4939713066293043], [65.30273437500001, -1.4939713066293043]], [[148.095703125, -40.11168866559596], [148.095703125, -40.4469470596005], [148.0078125, -40.4469470596005], [148.0078125, -40.51379915504414], [147.83203125, -40.51379915504414], [147.83203125, -40.580584664127635], [147.48046875000003, -40.580584664127635], [147.48046875000003, -40.64730356252252], [147.3046875, -40.64730356252252], [147.3046875, -40.71395582628605], [147.12890625, -40.71395582628605], [147.12890625, -40.78054143186032], [146.953125, -40.78054143186032], [146.953125, -40.847060356071225], [146.689453125, -40.847060356071225], [146.689453125, -40.91351257612758], [146.07421875000003, -40.91351257612758], [146.07421875000003, -40.847060356071225], [145.8984375, -40.847060356071225], [145.8984375, -40.78054143186032], [145.72265625, -40.78054143186032], [145.72265625, -40.71395582628605], [145.54687500000003, -40.71395582628605], [145.54687500000003, -40.64730356252252], [145.37109375000003, -40.64730356252252], [145.37109375000003, -40.580584664127635], [144.84375000000003, -40.580584664127635], [144.84375000000003, -40.51379915504414], [144.4921875, -40.51379915504414], [144.4921875, -40.580584664127635], [144.404296875, -40.580584664127635], [144.404296875, -40.64730356252252], [144.31640625, -40.64730356252252], [144.31640625, -40.847060356071225], [144.404296875, -40.847060356071225], [144.404296875, -41.112468789180866], [144.4921875, -41.112468789180866], [144.4921875, -41.44272637767212], [144.580078125, -41.44272637767212], [144.580078125, -41.64007838467893], [144.66796875000003, -41.64007838467893], [144.66796875000003, -41.70572851523752], [144.755859375, -41.70572851523752], [144.755859375, -41.83682786072714], [144.84375000000003, -41.83682786072714], [144.84375000000003, -42.22851735620852], [144.931640625, -42.22851735620852], [144.931640625, -42.61779143282346], [145.01953125, -42.61779143282346], [145.01953125, -42.8115217450979], [145.107421875, -42.8115217450979], [145.107421875, -42.94033923363183], [145.1953125, -42.94033923363183], [145.1953125, -43.068887774169625], [145.283203125, -43.068887774169625], [145.283203125, -43.197167282501276], [145.37109375000003, -43.197167282501276], [145.37109375000003, -43.261206124799784], [145.458984375, -43.261206124799784], [145.458984375, -43.32517767999296], [145.54687500000003, -43.32517767999296], [145.54687500000003, -43.45291889355466], [145.634765625, -43.45291889355466], [145.634765625, -43.58039085560785], [145.72265625, -43.58039085560785], [145.72265625, -43.6440258476995], [145.810546875, -43.6440258476995], [145.810546875, -43.70759350405295], [145.8984375, -43.70759350405295], [145.8984375, -43.77109381775651], [145.986328125, -43.77109381775651], [145.986328125, -43.834526782236836], [146.162109375, -43.834526782236836], [146.162109375, -43.89789239125797], [146.337890625, -43.89789239125797], [146.337890625, -43.96119063892026], [146.6015625, -43.96119063892026], [146.6015625, -44.02442151965934], [147.12890625, -44.02442151965934], [147.12890625, -43.96119063892026], [147.3046875, -43.96119063892026], [147.3046875, -43.89789239125797], [147.48046875000003, -43.89789239125797], [147.48046875000003, -43.834526782236836], [147.568359375, -43.834526782236836], [147.568359375, -43.77109381775651], [147.74414062500003, -43.77109381775651], [147.74414062500003, -43.70759350405295], [147.83203125, -43.70759350405295], [147.83203125, -43.6440258476995], [147.919921875, -43.6440258476995], [147.919921875, -43.58039085560785], [148.0078125, -43.58039085560785], [148.0078125, -43.516688535029076], [148.18359375, -43.516688535029076], [148.18359375, -43.38908193911751], [148.27148437500003, -43.38908193911751], [148.27148437500003, -43.32517767999296], [148.359375, -43.32517767999296], [148.359375, -43.197167282501276], [148.447265625, -43.197167282501276], [148.447265625, -43.004647127794435], [148.53515625, -43.004647127794435], [148.53515625, -42.682435398386225], [148.623046875, -42.682435398386225], [148.623046875, -41.04621681452063], [148.7109375, -41.04621681452063], [148.7109375, -40.91351257612758], [148.623046875, -40.91351257612758], [148.623046875, -40.580584664127635], [148.53515625, -40.580584664127635], [148.53515625, -40.4469470596005], [148.447265625, -40.4469470596005], [148.447265625, -40.38002840251183], [148.359375, -40.38002840251183], [148.359375, -40.313043208880906], [148.447265625, -40.313043208880906], [148.447265625, -40.11168866559596], [148.095703125, -40.11168866559596]]]}}]}", "n_shapes_geojson": 2}
13
  },
14
  "south_america": {
15
+ "input": {"matrix": [-7922544.351904369, 305.74811314070394, 0, -5432228.234830927, 0, -305.7481131407035], "bbox": [[-43.78498531802787, -68.35692680430485], [-45.12587626673896, -71.16942680430483]], "prompt": [{"type": "point", "data": [917, 492], "label": 0}], "zoom": 9, "model_name": "fastsam"},
16
+ "output": {"n_predictions": 1, "geojson": "{\"type\": \"FeatureCollection\", \"features\": [{\"id\": \"0\", \"type\": \"Feature\", \"properties\": {\"raster_val\": 255.0}, \"geometry\": {\"type\": \"Polygon\", \"coordinates\": [[[-68.72496879649233, -44.72918396873511], [-68.72496879649233, -44.73503752681158], [-68.72222221446108, -44.73503752681158], [-68.72222221446108, -44.72918396873511], [-68.72496879649233, -44.72918396873511]]]}}, {\"id\": \"1\", \"type\": \"Feature\", \"properties\": {\"raster_val\": 255.0}, \"geometry\": {\"type\": \"Polygon\", \"coordinates\": [[[-68.69475639414858, -44.71552336256564], [-68.68651664805483, -44.71552336256564], [-68.68651664805483, -44.717475075217266], [-68.6837700660236, -44.717475075217266], [-68.6837700660236, -44.72137830303612], [-68.69475639414858, -44.72137830303612], [-68.69475639414858, -44.72332981820328], [-68.69750297617983, -44.72332981820328], [-68.69750297617983, -44.727232651052816], [-68.70024955821108, -44.727232651052816], [-68.70024955821108, -44.736988581180135], [-68.69750297617983, -44.736988581180135], [-68.69750297617983, -44.738939569720145], [-68.69475639414858, -44.738939569720145], [-68.69475639414858, -44.742841349314396], [-68.70299614024233, -44.742841349314396], [-68.70299614024233, -44.74089049243158], [-68.70574272227358, -44.74089049243158], [-68.70574272227358, -44.736988581180135], [-68.70299614024233, -44.736988581180135], [-68.70299614024233, -44.733086406614525], [-68.70574272227358, -44.733086406614525], [-68.70574272227358, -44.72332981820328], [-68.70299614024233, -44.72332981820328], [-68.70299614024233, -44.71942672204078], [-68.69750297617983, -44.71942672204078], [-68.69750297617983, -44.717475075217266], [-68.69475639414858, -44.717475075217266], [-68.69475639414858, -44.71552336256564]]]}}, {\"id\": \"2\", \"type\": \"Feature\", \"properties\": {\"raster_val\": 0.0}, \"geometry\": {\"type\": \"Polygon\", \"coordinates\": [[[-68.61510551524233, -44.73503752681158], [-68.61235893321108, -44.73503752681158], [-68.61235893321108, -44.736988581180135], [-68.60961235117983, -44.736988581180135], [-68.60961235117983, -44.74089049243158], [-68.60686576914858, -44.74089049243158], [-68.60686576914858, -44.744792140368546], [-68.60961235117983, -44.744792140368546], [-68.60961235117983, -44.746742865593994], [-68.61510551524233, -44.746742865593994], [-68.61510551524233, -44.744792140368546], [-68.61785209727358, -44.744792140368546], [-68.61785209727358, -44.738939569720145], [-68.61510551524233, -44.738939569720145], [-68.61510551524233, -44.73503752681158]]]}}, {\"id\": \"3\", \"type\": \"Feature\", \"properties\": {\"raster_val\": 255.0}, \"geometry\": {\"type\": \"Polygon\", \"coordinates\": [[[-68.67003715586733, -44.71552336256564], [-68.65905082774233, -44.71552336256564], [-68.65905082774233, -44.717475075217266], [-68.64531791758608, -44.717475075217266], [-68.64531791758608, -44.71942672204078], [-68.63158500742983, -44.71942672204078], [-68.63158500742983, -44.72137830303612], [-68.62334526133608, -44.72137830303612], [-68.62334526133608, -44.72332981820328], [-68.61510551524233, -44.72332981820328], [-68.61510551524233, -44.72528126754219], [-68.60411918711733, -44.72528126754219], [-68.60411918711733, -44.727232651052816], [-68.60137260508608, -44.727232651052816], [-68.60137260508608, -44.72918396873511], [-68.59862602305485, -44.72918396873511], [-68.59862602305485, -44.733086406614525], [-68.59587944102358, -44.733086406614525], [-68.59587944102358, -44.73503752681158], [-68.59313285899233, -44.73503752681158], [-68.59313285899233, -44.738939569720145], [-68.59587944102358, -44.738939569720145], [-68.59587944102358, -44.74089049243158], [-68.59862602305485, -44.74089049243158], [-68.59862602305485, -44.744792140368546], [-68.59587944102358, -44.744792140368546], [-68.59587944102358, -44.746742865593994], [-68.59313285899233, -44.746742865593994], [-68.59313285899233, -44.744792140368546], [-68.5903862769611, -44.744792140368546], [-68.5903862769611, -44.742841349314396], [-68.58489311289858, -44.742841349314396], [-68.58489311289858, -44.74089049243158], [-68.58214653086733, -44.74089049243158], [-68.58214653086733, -44.746742865593994], [-68.57939994883608, -44.746742865593994], [-68.57939994883608, -44.77014643364652], [-68.58214653086733, -44.77014643364652], [-68.58214653086733, -44.77404610671493], [-68.57939994883608, -44.77404610671493], [-68.57939994883608, -44.77794551646628], [-68.57665336680483, -44.77794551646628], [-68.57665336680483, -44.77989512259798], [-68.57390678477358, -44.77989512259798], [-68.57390678477358, -44.783794137373214], [-68.57116020274233, -44.783794137373214], [-68.57116020274233, -44.78769288883069], [-68.5684136207111, -44.78769288883069], [-68.5684136207111, -44.79354052229554], [-68.57116020274233, -44.79354052229554], [-68.57116020274233, -44.79743861545747], [-68.60411918711733, -44.79743861545747], [-68.60411918711733, -44.79548960179131], [-68.61785209727358, -44.79548960179131], [-68.61785209727358, -44.79354052229554], [-68.62609184336733, -44.79354052229554], [-68.62609184336733, -44.791591376970146], [-68.62883842539858, -44.791591376970146], [-68.62883842539858, -44.789642165815195], [-68.63158500742983, -44.789642165815195], [-68.63158500742983, -44.78769288883069], [-68.63433158946108, -44.78769288883069], [-68.63433158946108, -44.78574354601669], [-68.63707817149233, -44.78574354601669], [-68.63707817149233, -44.783794137373214], [-68.64257133555483, -44.783794137373214], [-68.64257133555483, -44.78184466290029], [-68.64531791758608, -44.78184466290029], [-68.64531791758608, -44.77989512259798], [-68.65081108164858, -44.77989512259798], [-68.65081108164858, -44.77794551646628], [-68.65355766367985, -44.77794551646628], [-68.65355766367985, -44.77599584450527], [-68.65905082774233, -44.77599584450527], [-68.65905082774233, -44.77404610671493], [-68.6617974097736, -44.77404610671493], [-68.6617974097736, -44.77014643364652], [-68.66454399180483, -44.77014643364652], [-68.66454399180483, -44.768196498368496], [-68.66729057383608, -44.768196498368496], [-68.66729057383608, -44.76429643032501], [-68.67003715586733, -44.76429643032501], [-68.67003715586733, -44.76039609896521], [-68.67278373789858, -44.76039609896521], [-68.67278373789858, -44.75454510820799], [-68.67553031992983, -44.75454510820799], [-68.67553031992983, -44.752594646297744], [-68.67827690196108, -44.752594646297744], [-68.67827690196108, -44.750644118558625], [-68.68102348399233, -44.750644118558625], [-68.68102348399233, -44.744792140368546], [-68.67827690196108, -44.744792140368546], [-68.67827690196108, -44.742841349314396], [-68.67553031992983, -44.742841349314396], [-68.67553031992983, -44.74089049243158], [-68.67827690196108, -44.74089049243158], [-68.67827690196108, -44.736988581180135], [-68.68102348399233, -44.736988581180135], [-68.68102348399233, -44.733086406614525], [-68.67827690196108, -44.733086406614525], [-68.67827690196108, -44.73113522058903], [-68.67003715586733, -44.73113522058903], [-68.67003715586733, -44.72918396873511], [-68.66729057383608, -44.72918396873511], [-68.66729057383608, -44.72332981820328], [-68.67827690196108, -44.72332981820328], [-68.67827690196108, -44.717475075217266], [-68.67003715586733, -44.717475075217266], [-68.67003715586733, -44.71552336256564]], [[-68.61510551524233, -44.73503752681158], [-68.61510551524233, -44.738939569720145], [-68.61785209727358, -44.738939569720145], [-68.61785209727358, -44.744792140368546], [-68.61510551524233, -44.744792140368546], [-68.61510551524233, -44.746742865593994], [-68.60961235117983, -44.746742865593994], [-68.60961235117983, -44.744792140368546], [-68.60686576914858, -44.744792140368546], [-68.60686576914858, -44.74089049243158], [-68.60961235117983, -44.74089049243158], [-68.60961235117983, -44.736988581180135], [-68.61235893321108, -44.736988581180135], [-68.61235893321108, -44.73503752681158], [-68.61510551524233, -44.73503752681158]]]}}, {\"id\": \"4\", \"type\": \"Feature\", \"properties\": {\"raster_val\": 0.0}, \"geometry\": {\"type\": \"Polygon\", \"coordinates\": [[[-71.16942680430483, -43.78498531802787], [-71.16942680430483, -45.12587626673897], [-68.35692680430485, -45.12587626673897], [-68.35692680430485, -43.78498531802787], [-71.16942680430483, -43.78498531802787]], [[-68.69475639414858, -44.71552336256564], [-68.69475639414858, -44.717475075217266], [-68.69750297617983, -44.717475075217266], [-68.69750297617983, -44.71942672204078], [-68.70299614024233, -44.71942672204078], [-68.70299614024233, -44.72332981820328], [-68.70574272227358, -44.72332981820328], [-68.70574272227358, -44.733086406614525], [-68.70299614024233, -44.733086406614525], [-68.70299614024233, -44.736988581180135], [-68.70574272227358, -44.736988581180135], [-68.70574272227358, -44.74089049243158], [-68.70299614024233, -44.74089049243158], [-68.70299614024233, -44.742841349314396], [-68.69475639414858, -44.742841349314396], [-68.69475639414858, -44.738939569720145], [-68.69750297617983, -44.738939569720145], [-68.69750297617983, -44.736988581180135], [-68.70024955821108, -44.736988581180135], [-68.70024955821108, -44.727232651052816], [-68.69750297617983, -44.727232651052816], [-68.69750297617983, -44.72332981820328], [-68.69475639414858, -44.72332981820328], [-68.69475639414858, -44.72137830303612], [-68.6837700660236, -44.72137830303612], [-68.6837700660236, -44.717475075217266], [-68.68651664805483, -44.717475075217266], [-68.68651664805483, -44.71552336256564], [-68.69475639414858, -44.71552336256564]], [[-68.67003715586733, -44.71552336256564], [-68.67003715586733, -44.717475075217266], [-68.67827690196108, -44.717475075217266], [-68.67827690196108, -44.72332981820328], [-68.66729057383608, -44.72332981820328], [-68.66729057383608, -44.72918396873511], [-68.67003715586733, -44.72918396873511], [-68.67003715586733, -44.73113522058903], [-68.67827690196108, -44.73113522058903], [-68.67827690196108, -44.733086406614525], [-68.68102348399233, -44.733086406614525], [-68.68102348399233, -44.736988581180135], [-68.67827690196108, -44.736988581180135], [-68.67827690196108, -44.74089049243158], [-68.67553031992983, -44.74089049243158], [-68.67553031992983, -44.742841349314396], [-68.67827690196108, -44.742841349314396], [-68.67827690196108, -44.744792140368546], [-68.68102348399233, -44.744792140368546], [-68.68102348399233, -44.750644118558625], [-68.67827690196108, -44.750644118558625], [-68.67827690196108, -44.752594646297744], [-68.67553031992983, -44.752594646297744], [-68.67553031992983, -44.75454510820799], [-68.67278373789858, -44.75454510820799], [-68.67278373789858, -44.76039609896521], [-68.67003715586733, -44.76039609896521], [-68.67003715586733, -44.76429643032501], [-68.66729057383608, -44.76429643032501], [-68.66729057383608, -44.768196498368496], [-68.66454399180483, -44.768196498368496], [-68.66454399180483, -44.77014643364652], [-68.6617974097736, -44.77014643364652], [-68.6617974097736, -44.77404610671493], [-68.65905082774233, -44.77404610671493], [-68.65905082774233, -44.77599584450527], [-68.65355766367985, -44.77599584450527], [-68.65355766367985, -44.77794551646628], [-68.65081108164858, -44.77794551646628], [-68.65081108164858, -44.77989512259798], [-68.64531791758608, -44.77989512259798], [-68.64531791758608, -44.78184466290029], [-68.64257133555483, -44.78184466290029], [-68.64257133555483, -44.783794137373214], [-68.63707817149233, -44.783794137373214], [-68.63707817149233, -44.78574354601669], [-68.63433158946108, -44.78574354601669], [-68.63433158946108, -44.78769288883069], [-68.63158500742983, -44.78769288883069], [-68.63158500742983, -44.789642165815195], [-68.62883842539858, -44.789642165815195], [-68.62883842539858, -44.791591376970146], [-68.62609184336733, -44.791591376970146], [-68.62609184336733, -44.79354052229554], [-68.61785209727358, -44.79354052229554], [-68.61785209727358, -44.79548960179131], [-68.60411918711733, -44.79548960179131], [-68.60411918711733, -44.79743861545747], [-68.57116020274233, -44.79743861545747], [-68.57116020274233, -44.79354052229554], [-68.5684136207111, -44.79354052229554], [-68.5684136207111, -44.78769288883069], [-68.57116020274233, -44.78769288883069], [-68.57116020274233, -44.783794137373214], [-68.57390678477358, -44.783794137373214], [-68.57390678477358, -44.77989512259798], [-68.57665336680483, -44.77989512259798], [-68.57665336680483, -44.77794551646628], [-68.57939994883608, -44.77794551646628], [-68.57939994883608, -44.77404610671493], [-68.58214653086733, -44.77404610671493], [-68.58214653086733, -44.77014643364652], [-68.57939994883608, -44.77014643364652], [-68.57939994883608, -44.746742865593994], [-68.58214653086733, -44.746742865593994], [-68.58214653086733, -44.74089049243158], [-68.58489311289858, -44.74089049243158], [-68.58489311289858, -44.742841349314396], [-68.5903862769611, -44.742841349314396], [-68.5903862769611, -44.744792140368546], [-68.59313285899233, -44.744792140368546], [-68.59313285899233, -44.746742865593994], [-68.59587944102358, -44.746742865593994], [-68.59587944102358, -44.744792140368546], [-68.59862602305485, -44.744792140368546], [-68.59862602305485, -44.74089049243158], [-68.59587944102358, -44.74089049243158], [-68.59587944102358, -44.738939569720145], [-68.59313285899233, -44.738939569720145], [-68.59313285899233, -44.73503752681158], [-68.59587944102358, -44.73503752681158], [-68.59587944102358, -44.733086406614525], [-68.59862602305485, -44.733086406614525], [-68.59862602305485, -44.72918396873511], [-68.60137260508608, -44.72918396873511], [-68.60137260508608, -44.727232651052816], [-68.60411918711733, -44.727232651052816], [-68.60411918711733, -44.72528126754219], [-68.61510551524233, -44.72528126754219], [-68.61510551524233, -44.72332981820328], [-68.62334526133608, -44.72332981820328], [-68.62334526133608, -44.72137830303612], [-68.63158500742983, -44.72137830303612], [-68.63158500742983, -44.71942672204078], [-68.64531791758608, -44.71942672204078], [-68.64531791758608, -44.717475075217266], [-68.65905082774233, -44.717475075217266], [-68.65905082774233, -44.71552336256564], [-68.67003715586733, -44.71552336256564]], [[-68.72496879649233, -44.72918396873511], [-68.72496879649233, -44.73503752681158], [-68.72222221446108, -44.73503752681158], [-68.72222221446108, -44.72918396873511], [-68.72496879649233, -44.72918396873511]]]}}]}", "n_shapes_geojson": 5}
17
  }
18
  }
tests/events/get_raster_inference/europe/img.npy CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:7632377e4396014c2414095d338f5b05b60098dad7b133d40c55dc8ad3459651
3
  size 2101376
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:489a780d9dfc64d98d706b6203cb10d08b876113e2b7baf16147ae20dd1e0287
3
  size 2101376
tests/events/get_raster_inference/europe/inference_out.npy CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:17b72646da4d86cf2c1e3afee5d7f9fed8bd58b1827dccd0acdb96af8da2852f
3
  size 2801792
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:38f8f6ee59c74a4455e461320e2194f73fc22ad5ca18b86578c3c68cd18aab00
3
  size 2801792
tests/events/get_raster_inference/europe/mask.npy CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:76eb97b8d1fdf5dedc7809f1eeddc8dc7b8054c0cac8116593670c784e7ff9d5
3
  size 700544
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:77ed59d1b8370531722cefbacd5f46e868544bb2e890c3e4b5bdc708d228e012
3
  size 700544
tests/events/get_raster_inference/north_america/img.npy CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:448770e6ef52e285766681316688b07e463e972a562bd3c21e90c089a523d485
3
  size 2101376
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f705fa91d0bcc655aa3df35259e5579c3df36efad43b94c9d7cc16022ec7529b
3
  size 2101376
tests/events/get_raster_inference/north_america/inference_out.npy CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:d1d0e85a92a46a6a265c9dd43d5a9421b5cf5721882648635201e5aa60133e99
3
  size 2801792
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2f809eba06b9fcfd65a140242fee157462e4abd363991c0ab69a47b2d3334b75
3
  size 2801792
tests/events/get_raster_inference/north_america/mask.npy CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:5accbf54d79ea7fde54bdf1edc1de356785747d4f88995bee5c551b21bb329ad
3
  size 700544
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:633637b43c38bcb03bcce439a0b152612f45d6c2d54ea52ef51933939df3c617
3
  size 700544
tests/events/get_raster_inference/oceania/img.npy CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:81b80ce11a951e2d61e6388c2005f3cb13e46dad9592fe5fc3e427033f284933
3
  size 2101376
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3cb7c28cdbf2828fc427940364a9bc9ddab2e8fe873c011a8e948bcab164adff
3
  size 2101376
tests/events/get_raster_inference/oceania/inference_out.npy CHANGED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:a39fcd7b1c88631072ec46edc63a1a63d9d7bca1ce2d888cefa826dea1c795f4
3
- size 2801792
 
 
 
 
tests/events/get_raster_inference/oceania/mask.npy CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:22ca7e962f2a14a85912fb1c34518b8267a103d2d5f38cc664828fe02f22c53a
3
  size 700544
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b9648d6cf9e8dddf39a3521948d90c708847779df6160409b3bd67309f7c1005
3
  size 700544
tests/events/get_raster_inference/south_america/img.npy CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:333fb32daf379c93a649692c5449f33c53ee17811c4adc210f2b94a02b302f57
3
  size 2101376
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:986644fc80eeb114ea180d1c08e63fbe39be8392182fadf1710798989ee007b4
3
  size 2101376
tests/events/get_raster_inference/south_america/inference_out.npy CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:b3400b409d9d5b6ba325bc95b0c05f36a6e34854fdb6fcbcafbc6a3e789229b6
3
  size 2801792
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4dcaef7c5cd51b85fa85291ec2080b3d1f2d940e8b85602d776cdf3d4beccb05
3
  size 2801792
tests/events/get_raster_inference/south_america/mask.npy CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:a3a7ba64b8370604d56901da3e8c4da710c8fccfc06d753e435632ac3503dff9
3
  size 700544
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6d73a8626482c264aceb28493c145520bf78f8d8591900a936d86e8bb0d7aa3b
3
  size 700544
tests/prediction_api/test_predictors.py CHANGED
@@ -30,11 +30,11 @@ def test_get_raster_inference(
30
  model_mocked.predict_masks.return_value = inference_out
31
  model_mocked.predict_masks.side_effect = None
32
  print(f"k:{k}.")
33
- output_mask, output_inference_out = get_raster_inference(
34
  img=img,
35
  prompt=prompt,
36
  models_instance=model_mocked,
37
  model_name=model_name
38
  )
39
  assert np.array_equal(output_mask, mask)
40
- assert np.array_equal(output_inference_out, inference_out)
 
30
  model_mocked.predict_masks.return_value = inference_out
31
  model_mocked.predict_masks.side_effect = None
32
  print(f"k:{k}.")
33
+ output_mask, len_inference_out = get_raster_inference(
34
  img=img,
35
  prompt=prompt,
36
  models_instance=model_mocked,
37
  model_name=model_name
38
  )
39
  assert np.array_equal(output_mask, mask)
40
+ assert len_inference_out == input_output["output"]["n_predictions"]