mask-RCNN笔记——coco安装及使用

mask-rcnn的coco数据集使用:

coco安装:

1、下载代码,clone或者直接download

https://github.com/waleedka/coco

2、我使用的是python,进入目录,并执行make

进入有makefile的文件夹

在终端打开,执行命令make,

将make后的pycocotools复制到Mask_RCNN下

3.下载预训练的coco权重文件(mask_rcnn_coco.h5)【4】

https://github.com/matterport/Mask_RCNN/releases

coco数据集:

1、下载coco数据【8】

wget http://images.cocodataset.org/annotations/image_info_test2014.zip

wget http://images.cocodataset.org/annotations/annotations_trainval2014.zip

wget http://images.cocodataset.org/zips/test2014.zip

wget http://images.cocodataset.org/zips/val2014.zip

wget http://images.cocodataset.org/zips/train2014.zip

得到压缩包,并解压

2、数据集的使用:

在coco文件夹下建文件夹dataset

其下annotations文件夹中放图片文件夹的json文件

其下放置图片文件夹(train2014是图片文件夹)

参考代码:

【8】https://blog.csdn.net/u014734886/article/details/78830713

【4】https://blog.csdn.net/wei_guo_xd/article/details/78579534

猜你喜欢

转载自blog.csdn.net/Diana_Z/article/details/83576598
今日推荐