Skip to content

KwanWaiPang/3dgs_cuda_opencv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

3DGS的cpp实现(添加了opencv以及libtorch用了自己开发的版本~)

gaussian-splatting-cuda

Build

  • 由于不用pytorch,所以也不用conda了~
  • CMake 3.24 or higher is required. 需要更新CMakelist中的版本
#查看CMake的版本号(要变更):
cmake --version

#查看cuda版本
nvcc --version
  • 配置过程:
cd /home/gwp/LiDAR-3DGS/gaussian-splatting-cuda-master

# 下载并解压libtorch,这是pytorch的cpp版本
wget https://download.pytorch.org/libtorch/cu118/libtorch-cxx11-abi-shared-with-deps-2.0.1%2Bcu118.zip  

unzip  libtorch-cxx11-abi-shared-with-deps-2.0.1+cu118.zip -d external/

#移除掉(可选)
rm libtorch-cxx11-abi-shared-with-deps-2.0.1+cu118.zip

cmake -B build -DCMAKE_BUILD_TYPE=Release
cmake --build build -- -j16

#数据集下载
wget https://repo-sam.inria.fr/fungraph/3d-gaussian-splatting/datasets/input/tandt_db.zip

unzip tandt_db.zip -d data_set/

rm tandt_db.zip

运行

./build/gaussian_splatting_cuda -d ~/dataset/tandt_db/tandt/truck -o ~/catkin_ws/src/LiDAR-3DGS/gaussian-splatting-cuda-master/3DGS_result -i 6000

可视化

git clone https://github.com/camenduru/sibr_core.git
git checkout fossa_compatibility
cd SIBR_viewers
cmake -Bbuild .
cmake --build build -j24 --target install
#cmake --build build --target install --config RelWithDebInfo

结果可视化

cd SIBR_viewers
source embree-3.6.1.x86_64.linux/embree-vars.sh
cd ..
./SIBR_viewers/install/bin/SIBR_gaussianViewer_app -m ~/catkin_ws/src/LiDAR-3DGS/gaussian-splatting-cuda-master/3DGS_result

OpenSplat

  • for cpu-only

  • 运行的方式是./opensplat /path/to/banana -n 2000,也就是opensplat为启动文件~

  • 获取新的分支到本地

git fetch origin 分支名

About

C++版本的3DGS及中文注释

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published