Skip to content

Commit

Permalink
Merge pull request #2 from mayrajeo/cocores
Browse files Browse the repository at this point in the history
more migrating fixes
  • Loading branch information
mayrajeo authored Sep 19, 2023
2 parents 95da519 + 5cd0361 commit bfdea1b
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 bfdea1b

Please sign in to comment.