facebookresearch / facebookresearch/detectron2

thing_classes=['', '', '', '', '', '', ''] is empty

Open
#4,647 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
34.7k
Forks
7.9k
PR merge metrics
No merged PRs in 30d

Description

Hello, when I register my dataset which is in the COCO JSON format and MetadataCatalog it, i get empty classes

`import json`
`from detectron2.data import MetadataCatalog, DatasetCatalog`
`from detectron2.data.datasets import register_coco_instances`
`register_coco_instances('train',{},'/content/SplittedData/train.json', '/content/TACO/data')`
`_dataset_metadata_train = MetadataCatalog.get('train')`

![image](https://user-images.githubusercontent.com/75530842/200411185-c6368a31-8554-4f2e-99ed-fde5e874027a.png)

My JSON file: https://drive.google.com/file/d/1jnDJZswSGn0TZiYlZoApj2WfERoprhwG/view?usp=share_link

##Environment:
Google COLAB

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.