diff --git a/cerulean_cloud/cloud_run_orchestrator/handler.py b/cerulean_cloud/cloud_run_orchestrator/handler.py index 22d22ef8..f273879f 100644 --- a/cerulean_cloud/cloud_run_orchestrator/handler.py +++ b/cerulean_cloud/cloud_run_orchestrator/handler.py @@ -408,18 +408,6 @@ async def _orchestrate( 20, "offset tiles", ) - print("base_tiles_inference", base_tiles_inference) - print("base_tiles_inference[0]", base_tiles_inference[0]) - print("base_tiles_inference[0].stack", base_tiles_inference[0].stack) - print("base_tiles_inference[0].stack[0]", base_tiles_inference[0].stack[0]) - print( - "base_tiles_inference[0].stack[0].dict()", - base_tiles_inference[0].stack[0].dict(), - ) - print( - "base_tiles_inference[0].stack[0].dict().get(classes)", - base_tiles_inference[0].stack[0].dict().get("classes"), - ) if model.type == "MASKRCNN": out_fc = geojson.FeatureCollection( diff --git a/cerulean_cloud/cloud_run_orchestrator/merging.py b/cerulean_cloud/cloud_run_orchestrator/merging.py index 6e9b9c56..8b36db52 100644 --- a/cerulean_cloud/cloud_run_orchestrator/merging.py +++ b/cerulean_cloud/cloud_run_orchestrator/merging.py @@ -59,7 +59,7 @@ def merge_inferences( concat_gdf["geometry"] = concat_gdf.buffer(proximity_meters) # Join the features that intersect with each other - joined = gpd.sjoin(concat_gdf, concat_gdf, op="intersects").reset_index() + joined = gpd.sjoin(concat_gdf, concat_gdf, predicate="intersects").reset_index() # Create a graph where each node represents a feature and edges represent overlaps/intersections G = nx.from_pandas_edgelist(joined, "index", "index_right")