mmdetection安装

mmdetection安装
Ubuntu 18.04
  1. 安装依赖:python3.8+cuda11.1+torch1.7
  2. 安装mmcv:进入https://openmmlab.oss-accelerate.aliyuncs.com/mmcv/dist/index.html,根据python,cuda,torch等版本选择合适的mmcv-full版本,如./cu110/torch1.7.0/mmcv_full-1.2.5-cp38-cp38-manylinux1_x86_64.whl下载安装
    pip install mmcv_full-1.2.5-cp38-cp38-manylinux1_x86_64.whl
    删除 whl文件:rm mmcv_full-1.2.5-cp38-cp38-manylinux1_x86_64.whl
  3. 安装mmdetection:git clone https://github.com/open-mmlab/mmdetection.git
    cd mmdetection
    pip install -r requirements/build.txt
    pip install -v -e . # or “python setup.py develop”
  4. 测试:from mmdet.apis import init_detector

参考:http://www.feifeizaici.xyz/2020/07/install_mmdetection/
https://blog.csdn.net/weicao1990/article/details/92837292

评论 5
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值