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

can't find 'Type' in dataset #33

Open
yueyueyu opened this issue Mar 19, 2019 · 4 comments
Open

can't find 'Type' in dataset #33

yueyueyu opened this issue Mar 19, 2019 · 4 comments

Comments

@yueyueyu
Copy link

hi,when i run your code ,an error about the annotations of the COCO dataset is occurred as follow:

File "tools/coco-caption/pycocotools/coco.py", line 94, in createIndex
if self.dataset['type'] == 'instances':
KeyError: 'type'

i download COCO 2014 Train/Val annotation from the link . is there some mistake in the dataset? hepo to get your reply. thank you very much.

@Enjiwonlar
Copy link

Hello, I have the same problem. Have you solved it?

@sue2415535899
Copy link

me too! so how to solved it?

@dami23
Copy link

dami23 commented May 15, 2019

I have also encountered this error. So I checked the keys of 'instances_train2014.json' and 'instances_val2014.json', the keys are 'images', 'licenses', 'annotations', 'categories', 'info', no 'instances'. I directly commented the line " if self.dataset['type'] == 'instances' ".

@Longcuirong
Copy link

I have also encountered this error. So I checked the keys of 'instances_train2014.json' and 'instances_val2014.json', the keys are 'images', 'licenses', 'annotations', 'categories', 'info', no 'instances'. I directly commented the line " if self.dataset['type'] == 'instances' ".

Hello,I commented the line " if self.dataset['type'] == 'instances' ",but when load other not instance file,there is no 'categories'
image

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

5 participants