You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
710 B

# Docker setup
6 months ago
This docker setup is tested on Ubuntu.
make sure you are under directory `yourworkspace/instantmesh/`
6 months ago
Build docker image:
6 months ago
```bash
docker build -t instantmesh -f docker/Dockerfile .
```
6 months ago
Run docker image with a local model cache (so it is fast when container is started next time):
6 months ago
```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
```
6 months ago
Navigate to `http://localhost:43839` to use the demo.