Git Product home page Git Product logo

3dgs_cuda_opencv's Introduction

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 分支名

3dgs_cuda_opencv's People

Contributors

kwanwaipang avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.