https://github.com/willguimont/comfydocker
https://github.com/willguimont/comfydocker
Last synced: 6 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/willguimont/comfydocker
- Owner: willGuimont
- License: mit
- Created: 2024-08-27T16:06:52.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2025-02-28T22:15:19.000Z (over 1 year ago)
- Last Synced: 2025-10-08T19:05:53.474Z (10 months ago)
- Language: Dockerfile
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ComfyUI Dockerfile
## Installation
Follow the instructions
from [Flux1 ComfyUI Guide](https://comfyui-wiki.com/tutorial/advanced/flux1-comfyui-guide-workflow-and-examples).
`./models` is a volume mapped to the container, so put the models there.
```shell
cd models/clip
wget https://huggingface.co/comfyanonymous/flux_text_encoders/resolve/main/clip_l.safetensors
wget https://huggingface.co/comfyanonymous/flux_text_encoders/resolve/main/t5xxl_fp8_e4m3fn.safetensors
wget https://huggingface.co/comfyanonymous/flux_text_encoders/resolve/main/t5xxl_fp16.safetensors
cd ../vae
wget https://huggingface.co/black-forest-labs/FLUX.1-schnell/resolve/main/ae.safetensors
cd ../unet
# Normal models
wget https://huggingface.co/black-forest-labs/FLUX.1-schnell/resolve/main/flux1-schnell.safetensors
# Might require to ask for access to FLUX.1-dev on Hugging Face
export HF_TOKEN=$(cat ~/.huggingface/token)
wget --header="Authorization: Bearer $HF_TOKEN" https://huggingface.co/black-forest-labs/FLUX.1-dev/resolve/main/flux1-dev.safetensors
# FP8 models
wget https://huggingface.co/Comfy-Org/flux1-dev/resolve/main/flux1-dev-fp8.safetensors
wget https://huggingface.co/Comfy-Org/flux1-schnell/resolve/main/flux1-schnell-fp8.safetensors
```
## Running
```shell
docker-compose up --build
```
`./output` is a volume mapped to `/app/output`, so the output will be saved there.
## Additional notes
### Useful resources
- Plugins for comfyui at [civitai](https://civitai.com/tag/comfyui), or models at [civitai](https://civitai.com/).
- [lexica](https://lexica.art/) for prompt ideas.
- Additional models and lora can be downloaded at [civitai](https://civitai.com/)
### Installing plugins
Additional plugins can be added to the `install_plugins.sh` script.
## Fine-tuning
https://github.com/huggingface/diffusers/blob/main/examples/dreambooth/README_flux.md