Skip to content

安装CPU版PaddlePaddle后,运行train.py报错cuda_runtime.h: 没有那个文件或目录 #501

@HZY404

Description

@HZY404

环境:ubuntu22.04无GPU
安装CPU版PaddlePaddle后,运行命令:
python tools/train.py --config configs/centerpoint/centerpoint_pillars_016voxel_kitti.yml --save_dir ./output_kitti --num_workers 3 --save_interval 1 --iters 5
报错:
fatal error: cuda_runtime.h: 没有那个文件或目录
RuntimeError: Failed to run command: , errors: Command 'cd /home/hzy/.cache/paddle_extensions && /home/hzy/anaconda3/envs/paddle_env/bin/python voxelize_setup.py build' returned non-zero exit status 1.

环境安装命令如下:

创建虚拟环境

conda create -n paddle_env python=3.8

进入 conda 虚拟环境

conda activate paddle_env

添加清华源(可选)

对于国内用户无法连接到 conda 官方源的可以按照以下命令添加清华源:

conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
conda config --set show_channel_urls yes
conda install paddlepaddle==2.4.1 --channel https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/Paddle/

下载Paddle3D代码

说明:如已下载Paddle3D源码可忽略这一步。

git clone https://github.com/PaddlePaddle/Paddle3D

安装Paddle3D依赖

cd Paddle3D
pip install -r requirements.txt

安装Paddle3D

pip install -e . # install in edit mode

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions