Skip to content

Commit

Permalink
instructions for docker and singularity
Browse files Browse the repository at this point in the history
  • Loading branch information
JayKarhade committed Dec 8, 2023
1 parent 62e00bf commit df59ee2
Show file tree
Hide file tree
Showing 3 changed files with 63 additions and 1 deletion.
34 changes: 33 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@
</details>

## Installation

##### (Recommended)
SplaTAM has been tested on python 3.10, CUDA>=11.6. The simplest way to install all dependences is to use [anaconda](https://www.anaconda.com/) and [pip](https://pypi.org/project/pip/) in the following steps:

```bash
Expand All @@ -74,12 +76,42 @@ conda install pytorch==1.12.1 torchvision==0.13.1 torchaudio==0.12.1 cudatoolkit
pip install -r requirements.txt
```

We also provide a conda environment.yml file :
Alternatively, we also provide a conda environment.yml file :
```bash
conda env create -f environment.yml
conda activate splatam
```

#### Docker and Singularity Setup

We also provide a docker image. We recommend using a venv to run the code inside a docker image:


```bash
docker pull nkeetha/splatam:v1
bash bash_scripts/docker_start.bash
cd /SplaTAM/
pip install virtualenv --user
mkdir venv
cd venv
virtualenv splatam --system-site-packages
pip install -r venv_requirements.txt
```

Setting up a singularity container is similar:
```bash
cd </path/to/singularity/folder/
singularity pull splatam.sif docker://nkeetha/splatam:v1
singularity instance start --nv splatam.sif splatam
singularity run --nv instance://gradslam_2
cd <path/to/SplaTAM/>
pip install virtualenv --user
mkdir venv
cd venv
virtualenv splatam --system-site-packages
pip install -r venv_requirements.txt
```

## Demo

### Online
Expand Down
17 changes: 17 additions & 0 deletions bash_scripts/start_docker.bash
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/bin/bash

docker run -it \
--volume="./:/SplaTAM/" \
--env="NVIDIA_VISIBLE_DEVICES=all" \
--env="NVIDIA_DRIVER_CAPABILITIES=all" \
--net=host \
--privileged \
--group-add audio \
--group-add video \
--ulimit memlock=-1 \
--ulimit stack=67108864 \
--name splatam \
--gpus all \
nkeetha/splatam:v1 \
/bin/bash

13 changes: 13 additions & 0 deletions venv_requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
tqdm==4.65.0
Pillow
imageio
matplotlib
kornia
natsort
pyyaml
wandb
lpips
torchmetrics
cyclonedds
pytorch-msssim
git+https://github.com/JonathonLuiten/diff-gaussian-rasterization-w-depth.git@cb65e4b86bc3bd8ed42174b72a62e8d3a3a71110

0 comments on commit df59ee2

Please sign in to comment.