Skip to content

Commit

Permalink
Draft diff to unblock eval metrics + Eval data loader issue
Browse files Browse the repository at this point in the history
Differential Revision: D46641931

fbshipit-source-id: f9f9566a646d9bf67e9faeec5d03ab11e22e887e
  • Loading branch information
antonrigner authored and facebook-github-bot committed Jun 12, 2023
1 parent bcad53f commit ee5ae5e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions d2go/data/datasets.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ def _register_extended_coco(dataset_name, split_dict):
json_file=json_file,
image_root=image_root,
dataset_name=dataset_name,
image_direct_copy_keys=[
"inst_segm_file_name",
],
**load_kwargs,
)
DatasetCatalog.register(dataset_name, load_coco_json_func)
Expand Down
1 change: 1 addition & 0 deletions d2go/data/extended_coco.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ def convert_coco_annotations(
"point_labels",
"associations",
"file_name",
"inst_segm_id",
]
# NOTE: maybe use MetadataCatalog for this
obj = {field: anno[field] for field in fields_to_copy if field in anno}
Expand Down

0 comments on commit ee5ae5e

Please sign in to comment.