nightrome / cocostuff10k

The official homepage of the (outdated) COCO-Stuff 10K dataset.
https://arxiv.org/abs/1612.03716
277 stars 55 forks source link

extractThings Problem #19

Closed NIEYALI closed 6 years ago

NIEYALI commented 6 years ago

Thanks for your great work, but I met this following problems:

extractThings Loading COCO API... Loading and preparing annotations... DONE (t=11.14s). Error using containers.Map/subsref The specified key is not present in this container.

Error in CocoApi/getAnnIds (line 121) t = coco.loadAnns(coco.inds.imgAnnIdsMap(imgIds));

Error in extractThings>getImLabelMap (line 88) annIds = cocoApi.getAnnIds('imgIds', imgId, 'iscrowd', []);

Error in extractThings (line 71) labelMap = getImLabelMap(cocoApi, image, imageName);

Could u tell me what's wrong here? I use new dataset. And I want to create new annotation of new classes. Thanks a lot.

nightrome commented 6 years ago

Thanks for your interest! Are you trying to do this for a dataset other than COCO? That won't work! You will have to modify extractThings to be able to at least save a dummy labelMap with all zeros.

NIEYALI commented 6 years ago

Thanks a lot.