Instant-ngp linux部署及使用

2022-06-19  本文已影响0人  artCoding

本教程使用的环境及版本

Instant-ngp 训练数据集

参考地址:https://www.jianshu.com/p/319a4846946b

Instant-ngp官方文档地址

https://github.com/NVlabs/instant-ngp

instant-ngp官方要求环境配置(Requirements)

目的

基础环境依赖安装

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

安装cmake

sudo tar -zxvf cmake-3.24.0-rc1.tar.gz
sudo ./bootstrap
sudo make
sudo make install

安装GCC、G++

安装OptiX

bash NVIDIA-OptiX-SDK-7.5.0-linux64-x86_64.sh
export OptiX_INSTALL_DIR="/usr/local/NVIDIA-OptiX-SDK-7.5.0-linux64-x86_64"
image.png

安装COLMAP

sudo apt-get install \
git \
build-essential \
libboost-program-options-dev \
libboost-filesystem-dev \
libboost-graph-dev \
libboost-system-dev \
libboost-test-dev \
libeigen3-dev \
libsuitesparse-dev \
libfreeimage-dev \
libmetis-dev \
libgoogle-glog-dev \
libgflags-dev \
libglew-dev \
qtbase5-dev \
libqt5opengl5-dev \
libcgal-dev \
libcgal-qt5-dev
sudo apt-get install libatlas-base-dev libsuitesparse-dev
git clone https://github.com/ceres-solver/ceres-solver.git     
cd ceres-solver
git checkout 2.1.0
mkdir build
cd build
cmake .. -DBUILD_TESTING=OFF -DBUILD_EXAMPLES=OFF
make -j
sudo make install
git clone https://github.com/colmap/colmap
cd colmap
git checkout dev
mkdir build
cd build
cmake ..
make -j
sudo make install
colmap -h
# 有GUI的可执行以下命令
colmap gui

部署instant-ngp

git clone --recursive https://github.com/nvlabs/instant-ngp
cd instant-ngp
cmake . -B build
cmake --build build --config RelWithDebInfo -j 16
./build/testbed --no-gui --scene data/nerf/fox

注意:非GUI版本下执行该命令后训练不会停止,需要手动取消

window10部署instant-ngp

文献参考

https://github.com/NVlabs/instant-ngp
https://github.com/bycloudai/instant-ngp-Windows
https://zhuanlan.zhihu.com/p/79059379
https://www.cnblogs.com/AbnerShen/p/7399010.html
https://blog.csdn.net/weixin_46132232/article/details/124211233

上一篇 下一篇

猜你喜欢

热点阅读