mirror of
https://github.com/graphdeco-inria/gaussian-splatting
synced 2024-11-26 13:49:40 +00:00
42 lines
1016 B
Bash
Executable File
42 lines
1016 B
Bash
Executable File
#!/bin/bash
|
|
|
|
|
|
#git clone https://github.com/NVIDIA/cuda-samples #<- To Test docker Cuda image..
|
|
#cd cuda-samples
|
|
|
|
|
|
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="60;70;80" #-DUSE_CUDA=OFF
|
|
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="60;70;80" #-DCUDA_ENABLED=OFF
|
|
make
|
|
sudo make install
|
|
cd ..
|
|
cd ..
|
|
|
|
|
|
pip install -q plyfile
|
|
|
|
python3.10 -m pip install -q https://huggingface.co/camenduru/gaussian-splatting/resolve/main/diff_gaussian_rasterization-0.0.0-cp310-cp310-linux_x86_64.whl
|
|
python3.10 -m pip install -q https://huggingface.co/camenduru/gaussian-splatting/resolve/main/simple_knn-0.0.0-cp310-cp310-linux_x86_64.whl
|
|
|
|
python3.10 -m pip install torchvision
|
|
|
|
ln -s docker/run.sh ./run.sh
|
|
|
|
exit 0
|