Skip to content

Commit

Permalink
more migrating fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mayrajeo committed Sep 19, 2023
1 parent 2babb6f commit 5cd0361
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions geo2ml/data/cv.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,7 @@ def shp_to_coco_results(
raster_path: Path,
coco_dict: Path,
outpath: Path,
label_col: str = "label_id",
rotated_bbox: bool = False,
):
"Convert vector predictions into coco result format to be fed into COCO evaluator"
Expand Down
3 changes: 2 additions & 1 deletion nbs/13_data.cv.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -603,7 +603,8 @@
"source": [
"#| export\n",
"\n",
"def shp_to_coco_results(prediction_path:Path, raster_path:Path, coco_dict:Path, outpath:Path, rotated_bbox:bool=False):\n",
"def shp_to_coco_results(prediction_path:Path, raster_path:Path, coco_dict:Path, outpath:Path, \n",
" label_col:str='label_id', rotated_bbox:bool=False):\n",
" \"Convert vector predictions into coco result format to be fed into COCO evaluator\"\n",
"\n",
" with open(coco_dict) as f:\n",
Expand Down

0 comments on commit 5cd0361

Please sign in to comment.