Skip to content

Commit

Permalink
Get rid of debug statements
Browse files Browse the repository at this point in the history
  • Loading branch information
jonaraphael committed Oct 31, 2023
1 parent 1b3b66e commit 002de1f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 13 deletions.
12 changes: 0 additions & 12 deletions cerulean_cloud/cloud_run_orchestrator/handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
2 changes: 1 addition & 1 deletion cerulean_cloud/cloud_run_orchestrator/merging.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 002de1f

Please sign in to comment.