pytorch1.71 cuda11.0安装mmdectection2.10

1. 我的环境

cuda11.0,pytorch1.71。

2. 安装mmcv

在下面这行地址:
https://mmcv.readthedocs.io/en/latest/#installation
在这里插入图片描述我的pytroch版本虽然是1.71但是1.71和1.70差距不大,后面尝试了可以正常使用mmdetection。

pip install mmcv-full -f https://download.openmmlab.com/mmcv/dist/cu110/torch1.7.0/index.html

注:我的pytorch是1.71,我尝试修改修改安装命令中的torch1.7.0为torch
1.7.1但是发现不能安装,所以这里依然用上面那条命令。
在这里插入图片描述
出现上图这个说明成功了

3. 安装mmdetection2

git clone https://github.com/open-mmlab/mmdetection.git
cd mmdetection
pip install -r requirements/build.txt
pip install -v -e .

在这里插入图片描述出现上图的就说明安装成功了,下面测试效果(下图表示测试成功)

在这里插入图片描述在readme.md中下载 该预训练模型文件:
http://download.openmmlab.com/mmdetection/v2.0/faster_rcnn/faster_rcnn_r50_fpn_1x_coco/faster_rcnn_r50_fpn_1x_coco_20200130-047c8118.pth
在mmdetection文件目录中创建checkpoints文件夹,将下载的pth文件放入其中。
执行下面这条命令。

python demo/image_demo.py demo/demo.jpg configs/faster_rcnn/faster_rcnn_r50_fpn_1x_coco.py checkpoints/faster_rcnn_r50_fpn_1x_coco_20200130-047c8118.pth 

出现下面该图就算成功了。
在这里插入图片描述

  • 0
    点赞
  • 6
    收藏
    觉得还不错? 一键收藏
  • 2
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值