Skip to content

Commit 7d02d74

Browse files
authored
Merge pull request #116 from fastlabel/fix-coco-category-suercategory
fix coco supercategory
2 parents bd4f4a0 + 63241ea commit 7d02d74

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ Supported following project types:
6666
- Image - Keypoint
6767
- Image - Line
6868
- Image - Segmentation
69-
- Image - Pose Estimation(not support Create Task)
69+
- Image - Pose Estimation
7070
- Image - All
7171

7272
#### Create Task

fastlabel/converters.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
from concurrent.futures import ThreadPoolExecutor
2-
from curses import keyname
32
from datetime import datetime
43
from decimal import Decimal
54
from typing import List
@@ -667,7 +666,7 @@ def execute_coco_to_fastlabel(coco: dict ,annotation_type:str) -> dict:
667666
coco_categories = {}
668667
coco_categories_keypoints={}
669668
for c in coco["categories"]:
670-
coco_categories[c["id"]] = c["name"]
669+
coco_categories[c["id"]] = c["supercategory"]
671670
coco_categories_keypoints[c["id"]] = c["keypoints"]
672671

673672
coco_annotations = coco["annotations"]

0 commit comments

Comments
 (0)