Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AssertionError: Attribute 'thing_dataset_id_to_contiguous_id' in the metadata of 'coco_2017_train' cannot be set to a different value! {1: 0} != {0: 0} #35

Open
zkungithub opened this issue Dec 15, 2021 · 2 comments

Comments

@zkungithub
Copy link

AssertionError: Attribute 'thing_dataset_id_to_contiguous_id' in the metadata of 'coco_2017_train' cannot be set to a different value!
{1: 0} != {0: 0}
修改detectron2/data/datasets中builtin_meta.py文件,但是训练报错,是不是类别不匹配,configs/default.py文件中的类别数也改过来了。(训练一类数据集)

@shenhaibb
Copy link

你json文件里的类别id是从0开始还是从1开始的

@zkungithub
Copy link
Author

zkungithub commented Apr 24, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants