catid
8 months ago
3 changed files with 16 additions and 6 deletions
@ -1,13 +1,22 @@ |
|||
# Docker setup |
|||
|
|||
This docker setup is tested on WSL(Ubuntu). |
|||
This docker setup is tested on Ubuntu. |
|||
|
|||
make sure you are under directory yourworkspace/instantmesh/ |
|||
|
|||
run |
|||
Build docker image: |
|||
|
|||
`docker build -t instantmesh/deploy:cuda12.1 -f docker/Dockerfile .` |
|||
```bash |
|||
docker build -t instantmesh -f docker/Dockerfile . |
|||
``` |
|||
|
|||
then run |
|||
Run docker image with a local model cache (so it is fast when container is started next time): |
|||
|
|||
`docker run --gpus all -it instantmesh/deploy:cuda12.1` |
|||
```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 |
|||
``` |
|||
|
|||
Navigate to `http://localhost:43839` to use the demo. |
|||
|
Loading…
Reference in new issue