coco.py 文件源码

python
阅读 35 收藏 0 点赞 0 评论 0

项目:keras-retinanet 作者: fizyr 项目源码 文件源码
def __init__(self, data_dir, set_name, image_data_generator, *args, **kwargs):
        self.data_dir  = data_dir
        self.set_name  = set_name
        self.coco      = COCO(os.path.join(data_dir, 'annotations', 'instances_' + set_name + '.json'))
        self.image_ids = self.coco.getImgIds()

        self.load_classes()

        super(CocoGenerator, self).__init__(image_data_generator, **kwargs)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号