-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.sh
executable file
·29 lines (20 loc) · 904 Bytes
/
setup.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/bash
source $(conda info --base)/etc/profile.d/conda.sh
conda update -n base -c defaults conda
conda create -y -n pegasus python=3.8
conda activate pegasus
conda install -c conda-forge cudatoolkit=11.6 -y
conda install -c "nvidia/label/cuda-11.6.0" cuda-toolkit -y
conda install pip=22.3.1 -y
conda install pyopengl -y
pip install torch==1.12.1+cu116 torchvision==0.13.1+cu116 torchaudio==0.12.1 --extra-index-url https://download.pytorch.org/whl/cu116
pip install -r requirements.txt
# install submodules
pip install submodules/gaussian-splatting-pegasus/submodules/depth-diff-gaussian-rasterization
pip install submodules/gaussian-splatting-pegasus/submodules/simple-knn
# install XMEM
pip install -r submodules/XMem/requirements_demo.txt
pip install -r submodules/XMem/requirements.txt
pip install Pillow==9.5.0
# Download XMEM weights
./submodules/XMem/scripts/download_models_demo.sh