CenterPoint环境配置与安装
创始人
2025-05-29 17:12:24

CenterPoint环境配置与安装

  • Requirements
  • Basic Installation
  • Advanced Installation
    • nuScenes dev-kit
    • Cuda Extensions
    • spconv
    • APEX

博主在配置CenterPoint的环境时,按照原链接安装时采了很多坑,总会各种报错,下面是成功运行的安装教程

https://github.com/tianweiy/CenterPoint/blob/master/docs/INSTALL.md

Requirements

  • Linux
  • Python 3.6+
  • PyTorch 1.1 or higher
  • CUDA 10.0 or higher
  • CMake 3.13.2 or higher
  • spconv
  • APEX

注意:

  • spconv应该是与cuda相匹配的特定版本
  • 经验法则是,你的pytorch cuda版本必须与你的系统的cuda版本匹配,其他cuda扩展才能正常工作。

Basic Installation

conda create --name centerpoint python=3.7
conda activate centerpoint
conda install pytorch==1.1.0 torchvision==0.3.0 cudatoolkit=10.0 -c pytorch
git clone https://github.com/tianweiy/CenterPoint.git
cd CenterPoint
pip install -r requirements.txt# add CenterPoint to PYTHONPATH by adding the following line to ~/.bashrc (change the path accordingly)
export PYTHONPATH="${PYTHONPATH}:PATH_TO_CENTERPOINT"

Advanced Installation

nuScenes dev-kit

git clone https://github.com/tianweiy/nuscenes-devkit# add the following line to ~/.bashrc and reactivate bash (remember to change the PATH_TO_NUSCENES_DEVKIT value)
export PYTHONPATH="${PYTHONPATH}:PATH_TO_NUSCENES_DEVKIT/python-sdk"

Cuda Extensions

# set the cuda path(change the path to your own cuda location) 
export PATH=/usr/local/cuda-10.0/bin:$PATH
export CUDA_PATH=/usr/local/cuda-10.0
export CUDA_HOME=/usr/local/cuda-10.0
export LD_LIBRARY_PATH=/usr/local/cuda-10.0/lib64:$LD_LIBRARY_PATH
bash setup.sh 

spconv

sudo apt-get install libboost-all-dev
pip install spconv-cu113 # 根据自身cuda版本进行安装

APEX

git clone https://github.com/NVIDIA/apex
cd apex
python3 setup.py install

相关内容

热门资讯

当事人有争议!成都路桥近530... 微成都报道 11月21日晚间,成都路桥(002628.SZ)发布公告称,原本定于本月24日至25日期...
薛鹤翔:财政加码护航经济回升 ... 薛鹤翔、陈梦赟(薛鹤翔系申银万国期货研究所所长、中国首席经济学家论坛成员)摘要9月就业数据表现分化。...
沈建光:2025年中央经济工作... 原创 沈建光 FT中文网 2025年11月19日考虑到去年四季度高基数和政策效应减弱,四季度经济面临...
王老吉WALOVI国际罐马来西... 11月17日,在马来西亚吉隆坡举行的2025年《财富》创新论坛上,王老吉WALOVI国际罐马来西亚上...
尚德2025年前三季度净利润逾... 业务转型以来,成人在线教育企业尚德机构(NYSE: STG)用持续的盈利证明,选择老年教育赛道是个正...