openpcdet环境配置

版本确定

驱动,cuda,cudnn

cuda与cudnn

官方

安装文档
https://docs.nvidia.com/cuda/cuda-installation-guide-linux/index.html#runfile-installation
安装包下载地址
https://developer.nvidia.com/rdp/cudnn-archive
安装cuda10.1.243,cudnn7.6.5

pip安装pytorch

https://blog.csdn.net/qq_37541097/article/details/114896215
通过网址直接下载轮子:
https://download.pytorch.org/whl/torch_stable.html

pip与conda安装pytorch都ok
用pip安装甚至速度会更快一些,使用命令:
pip install torch==1.7.0+cu101 torchvision torchaudio -f https://download.pytorch.org/whl/torch_stable.html
提示安装不匹配:自己从官网下载whl文件本地安装

在这里插入图片描述
在这里插入图片描述
在这里插入图片描述

关于conda安装pytorch

因为源的原因,导致下载速度很慢
我们需要配置conda清华源,中科院源,阿里源
在conda里面装pytorch用conda install和pip install是同样的功能:
我最初装pytorch1.8通过这个命令成功:

conda install pytorch==1.8.0 torchvision==0.9.0 torchaudio==0.8.0 cudatoolkit=10.2 -c pytorch

后面通过pip也可以装:

pip install torch==1.7.0+cu101 torchvision torchaudio -f https://download.pytorch.org/whl/torch_stable.html

conda环境之外的cuda cudnn安装的是:
在这里插入图片描述
其实pytorch依赖的cuda自己已经通过conda环境中的cudatoolkit安装,但是在装openpcdet环境中的库安装需要用cmake使用外面的cuda编译。

openpcdet环境安装

  1. requiments.txt
  2. spconv:
装的是spconv1.2:
git clone XXX --recursive
然后按照spconv中的README,先编译再安装,没问题
sudo apt-get install libboost-all-dev
python setup.py bdist_wheel
cd ./dist
  1. 安装openpcdet
pip install -r requirements.txt
python setup.py develop

tensorrt的安装

  1. 首先还是按照官方文档,下载6.0.1.zip
  2. 解压后选择链接到 tensorrt/bin/lib
  3. pip3 -m pip install cp36(记住你环境是哪个版本的选择哪个).whl(期间遇到一个库没有安装,直接搜索whl文件进行本地安装)
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值