def setUp(self):
self.annotations_file = "data/coco/annotations/instances_minival2014.json"
if getattr(self, 'coco', None) is None:
self.coco = COCO(self.annotations_file)
image_name = config.IMAGE_NAME_FORMAT % ('val2014', self.coco.getImgIds()[0])
image_path = config.IMAGE_PATH_FORMAT % ('val2014', image_name)
self.image = load_image(image_path)
评论列表
文章目录