mirror of
https://github.com/graphdeco-inria/gaussian-splatting
synced 2024-11-26 21:59:37 +00:00
35 lines
818 B
Bash
35 lines
818 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
|
||
|
git clone https://ceres-solver.googlesource.com/ceres-solver
|
||
|
cd ceres-solver
|
||
|
git checkout $(git describe --tags) # Checkout the latest release
|
||
|
mkdir build
|
||
|
cd build
|
||
|
cmake .. -DBUILD_TESTING=OFF -DBUILD_EXAMPLES=OFF -DCMAKE_CUDA_ARCHITECTURES=native
|
||
|
make
|
||
|
sudo make install
|
||
|
cd ..
|
||
|
cd ..
|
||
|
|
||
|
|
||
|
git clone https://github.com/colmap/colmap
|
||
|
cd colmap
|
||
|
git checkout dev
|
||
|
mkdir build
|
||
|
cd build
|
||
|
cmake .. -DCMAKE_CUDA_ARCHITECTURES=native
|
||
|
make
|
||
|
sudo make install
|
||
|
CC=/usr/bin/gcc-6 CXX=/usr/bin/g++-6 cmake ..
|
||
|
cd ..
|
||
|
cd ..
|
||
|
|
||
|
|
||
|
pip install -q plyfile
|
||
|
|
||
|
pip install -q https://huggingface.co/camenduru/gaussian-splatting/resolve/main/diff_gaussian_rasterization-0.0.0-cp310-cp310-linux_x86_64.whl
|
||
|
pip install -q https://huggingface.co/camenduru/gaussian-splatting/resolve/main/simple_knn-0.0.0-cp310-cp310-linux_x86_64.whl
|
||
|
|
||
|
exit 0
|