配置mask rcnn的过程

1.安装需要的包

在ubuntu16.04环境下将python3设置成默认的(ubuntu16.04下是直接有python3)
直接执行这两个命令即可:
sudo update-alternatives --install /usr/bin/python python /usr/bin/python2 100
sudo update-alternatives --install /usr/bin/python python /usr/bin/python3 150
修改镜像源
找到 /etc/apt/source.list
清空整个source.list文件,然后复制下列内容到文件中:
  1. deb http://mirrors.ustc.edu.cn/ubuntu/ precise main restricted universe multiverse  
  2. deb http://mirrors.ustc.edu.cn/ubuntu/ precise-security main restricted universe multiverse  
  3. deb http://mirrors.ustc.edu.cn/ubuntu/ precise-updates main restricted universe multiverse  
  4. deb http://mirrors.ustc.edu.cn/ubuntu/ precise-proposed main restricted universe multiverse  
  5. deb http://mirrors.ustc.edu.cn/ubuntu/ precise-backports main restricted universe multiverse  
  6. deb-src http://mirrors.ustc.edu.cn/ubuntu/ precise main restricted universe multiverse  
  7. deb-src http://mirrors.ustc.edu.cn/ubuntu/ precise-security main restricted universe multiverse  
  8. deb-src http://mirrors.ustc.edu.cn/ubuntu/ precise-updates main restricted universe multiverse  
  9. deb-src http://mirrors.ustc.edu.cn/ubuntu/ precise-proposed main restricted universe multiverse  
  10. deb-src http://mirrors.ustc.edu.cn/ubuntu/ precise-backports main restricted universe multiverse  
然后执行更新一下:sudo apt-get updata
然后开始安装:

  • Python 3.4+
  • TensorFlow 1.3+
  • Keras 2.0.8+
  • Jupyter Notebook
  • Numpy, skimage, scipy
  • 下载数据集(mscoco2014)
  • a. 使用aria2 搭配命令行下载。需要先安装:
  • sudo apt-get install aria2
  • b. 进入存放COCO的目录,依次输入下面3个命令下载:
  • aria2c -c http://msvocds.blob.core.windows.net/annotations-1-0-3/instances_train-val2014.zip
    aria2c -c http://msvocds
    .blob.core.windows.net/coco2014/train2014.zip
    aria2c -c http://msvocds
    .blob.core.windows.net/coco2014/val2014.zip
  • 以上3个url链接分别为2014年的 annotations、train data、val data。
  • 下面的操作请参考https://blog.csdn.net/xiongchao99/article/details/79106588这篇博客,写的非常详细


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值