When I run "python3 entity_to_json.py", the following problems occur:
Traceback (most recent call last):
File "entity_to_json.py", line 23, in
catid_map = {category['id']: [cid, category["isthing"], category["name"], category["supercategory"]] for cid, category in enumerate(categories_list)}
File "entity_to_json.py", line 23, in
catid_map = {category['id']: [cid, category["isthing"], category["name"], category["supercategory"]] for cid, category in enumerate(categories_list)}
KeyError: 'supercategory'
I find that the problem occurs in categories_list, and there is no "supercategory" key in categories_list(from detectron2.data.datasets.builtin_meta import COCO_CATEGORIES) .
When I run "python3 entity_to_json.py", the following problems occur: Traceback (most recent call last): File "entity_to_json.py", line 23, in
catid_map = {category['id']: [cid, category["isthing"], category["name"], category["supercategory"]] for cid, category in enumerate(categories_list)}
File "entity_to_json.py", line 23, in
catid_map = {category['id']: [cid, category["isthing"], category["name"], category["supercategory"]] for cid, category in enumerate(categories_list)}
KeyError: 'supercategory'
I find that the problem occurs in categories_list, and there is no "supercategory" key in categories_list(from detectron2.data.datasets.builtin_meta import COCO_CATEGORIES) .