前期准备:
安装pycocotools:Windows下安装-
pip install git+https://github.com/philferriere/cocoapi.git#subdirectory=PythonAPI
创建自己的coco数据集:
transform RLE into COCO annotations
从GitHub克隆项目到自己本地即可创建自己的coco数据。
项目example中"1001.jpeg"对应的annotations有四张,是因为"1001.jpeg"中有四个类别,如图:
Helper functions to create COCO datasets(基于自己的图片数据创建coco数据集)
原文:https://www.cnblogs.com/dyc99/p/12697300.html