README.md 710 Bytes
Newer Older
chenpangpang's avatar
chenpangpang committed
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
# Docker setup

This docker setup is tested on Ubuntu.

make sure you are under directory `yourworkspace/instantmesh/`

Build docker image:

```bash
docker build -t instantmesh -f docker/Dockerfile .
```

Run docker image with a local model cache (so it is fast when container is started next time):

```bash
mkdir -p $HOME/models/
export MODEL_DIR=$HOME/models/

docker run -it -p 43839:43839 --platform=linux/amd64 --gpus all -v $MODEL_DIR:/workspace/instantmesh/models instantmesh
```

To use specific GPUs:

```bash
docker run -it -p 43839:43839 --platform=linux/amd64 --gpus '"device=0,1"' -v $MODEL_DIR:/workspace/instantmesh/models instantmesh
```

Navigate to `http://localhost:43839` to use the demo.