Skip to content

Commit 072ebe0

Browse files
authored
Merge pull request #7 from ori-drs/et-dev
Update Docker Build
2 parents 620e6d8 + 30f9dbb commit 072ebe0

File tree

7 files changed

+14
-6
lines changed

7 files changed

+14
-6
lines changed

.docker/.env

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ UID=1000
22
GID=1000
33
USERNAME=docker_dev # Set your username for the container
44

5-
HOST_DATA_DIR=~/data # folder on the host machine which you can attach to the container
65

76
DOCKER_HOME_DIR=/home/${USERNAME} # Home directory inside the container
87
DOCKER_WORK_DIR=${DOCKER_HOME_DIR}/silvr # Path to the main codebase inside the docker container
9-
DOCKER_DATA_DIR=${DOCKER_HOME_DIR}/data # folder inside the docker container of the attached folder HOST_DATA_DIR

.docker/docker_compose.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,8 @@ services:
1717
network_mode: "host"
1818
tty: true
1919
volumes:
20-
- ${HOST_DATA_DIR}:${DOCKER_DATA_DIR}
20+
- ../scripts:${DOCKER_WORK_DIR}/scripts
21+
- ../configs:${DOCKER_WORK_DIR}/configs
22+
- ../outputs:${DOCKER_WORK_DIR}/outputs
23+
- ../data:${DOCKER_WORK_DIR}/data
2124

README.md

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,17 @@
1515
## Setup
1616
### Docker
1717
Build a docker image to install dependencies and run SiLVR.
18+
1819
```
20+
mkdir data outputs
1921
docker compose -f .docker/docker_compose.yaml run --build silvr
2022
```
21-
Note: You can use your own `CUDA_ARCHITECTURES` in the Dockerfile to make the `tinycudann` build quicker.
23+
24+
Tip 1: Update `UID` and `GID` in the `.docker/.env` to be the same as your system user ID (check by running `id` in the terminal) such that the host machine has proper permission to the `data` and `outputs` folders generated inside the docker.
25+
26+
Tip 2: You can use your own `CUDA_ARCHITECTURES` in the Dockerfile to make the `tinycudann` build quicker.
27+
28+
2229
### Manual Installation
2330
You can also install SiLVR to your system manually.
2431
```
@@ -40,9 +47,9 @@ pip install -e .
4047
```
4148
python scripts/data_downloader.py
4249
43-
python scripts/main.py --config config/2024-03-13-roq-01-unc.yaml
50+
python scripts/main.py --config configs/2024-03-13-roq-01-unc.yaml
4451
45-
python scripts/main.py --config config/2024-bodleian-01+02-unc.yaml
52+
python scripts/main.py --config configs/2024-bodleian-01+02-unc.yaml
4653
```
4754
### ICRA 24 Results
4855
Download sample data from [Hugging face](https://huggingface.co/datasets/ori-drs/silvr_data/tree/main), setup the [config file](./scripts/config_train.yaml), and then run the training script.

0 commit comments

Comments
 (0)