forked from hotshotco/Hotshot-XL
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request hotshotco#4 from hotshotco/feature/docker
Feature/docker
- Loading branch information
Showing
3 changed files
with
53 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
FROM pytorch/pytorch:2.0.1-cuda11.7-cudnn8-runtime | ||
|
||
COPY requirements.txt . | ||
|
||
RUN pip install --no-cache-dir -r requirements.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# 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`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
accelerate==0.23.0 | ||
einops==0.7.0 | ||
diffusers==0.21.4 | ||
transformers==4.34.0 | ||
wandb==0.15.11 | ||
moviepy==1.0.3 | ||
imageio==2.31.5 |