Spaces:
Configuration error
Configuration error
File size: 1,275 Bytes
a3806ed |
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 29 30 31 32 33 34 35 36 37 38 39 40 41 42 |
# Setup
This docker file is for the **environment only**. This is to keep the docker image as small as possible!
## Quickstart
Hotshot have their own docker image you can use directly:
```
docker pull hotshotapp/hotshot-xl-env:latest
```
Or you can build it yourself
```
cd docker
docker build -t hotshotapp/hotshot-xl-env:latest .
```
## Running the docker image
We recommend storing the weights locally on your machine. That way the weights persist if you kill the container!
- Install the models to a folder locally (Optional)
```
cd /path/to/models
git lfs install
git clone https://huggingface.co/hotshotco/Hotshot-XL
```
- Run the docker from the project root
- **Linux**
```
docker run -it --gpus=all --rm -v $(pwd):/local -v /path/to/models:/models hotshotapp/hotshot-xl-env:latest
```
- **Windows (Powershell)**
```
docker run -it --gpus=all --rm -v ${PWD}:/local -v C:\path\to\models:/models hotshotapp/hotshot-xl-env:latest
```
If you want to download the models from within the container itself then you do not need to map the volumes and ` -v /path/to/models:/models` can be removed.
**Note**: Ensure you have NVIDIA Docker runtime installed if you want to utilize GPU support with `--gpus=all`.
|