Skip to content

Commit ce88007

Browse files
dpascualheSakhinetiPraveena
authored andcommitted
Fix ontology conversion issues in example notebook
1 parent 2bfc5e6 commit ce88007

File tree

2 files changed

+193
-1722
lines changed

2 files changed

+193
-1722
lines changed

detectionmetrics/datasets/coco.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def build_coco_dataset(annotation_file: str, image_dir: str, coco_obj: Optional[
3333
for cat in coco.loadCats(coco.getCatIds()):
3434
ontology[cat["name"]] = {
3535
"idx": cat["id"],
36-
"name": cat["name"],
36+
# "name": cat["name"],
3737
"rgb": [0, 0, 0] # Placeholder; COCO doesn't define RGB colors
3838
}
3939

examples/tutorial_image_detection.ipynb

Lines changed: 192 additions & 1721 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)