open-mmlab / cocoapi

COCO API - Dataset @ http://cocodataset.org/
Other
46 stars 34 forks source link

Move some variable #19

Closed xvjiarui closed 4 years ago

xvjiarui commented 4 years ago

This PR removed self.img_ann_map and self.cat_img_map from self.createIndex(). So that when a class inherits from COCO, user only needs to take care of self.catToImgs and self.imgToAnns.

xvjiarui commented 4 years ago

@OceanPang

OceanPang commented 4 years ago

@xvjiarui Can we merge the PR and release a new version of mmpycocotools?

xvjiarui commented 4 years ago

@OceanPang Done.