本机环境
win11
WSL2
Ubuntu20.04
Instant-ngp官方源码
https://github.com/NVlabs/instant-ngp
部署流程
- 安装依赖项
sudo apt-get install build-essential git python3-dev python3-pip libopenexr-dev libxi-dev \
libglfw3-dev libglew-dev libomp-dev libxinerama-dev libxcursor-dev
- 安装CUDA
下载对应版本CUDA进行安装,下载地址
wget https://developer.download.nvidia.com/compute/cuda/11.8.0/local_installers/cuda_11.8.0_520.61.05_linux.run
sudo sh cuda_11.8.0_520.61.05_linux.run
配置安装路径,打开~/.bashrc添加:
export PATH="/usr/local/cuda-11.8/bin:$PATH"
export LD_LIBRARY_PATH="/usr/local/cuda-11.8/lib64:$LD_LIBRARY_PATH"
命令:
vim ~/.bashrc
source ~/.bashrc
- 源码下载
git clone --recursive https://github.com/nvlabs/instant-ngp
cd instant-ngp
- 编译
cmake . -B build
cmake --build build --config RelWithDebInfo -j
- 执行
./instant-ngp ./data/nerf/fox/