mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-01-07 21:00:49 +08:00
The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface.
| .github | ||
| comfy | ||
| comfy_api | ||
| comfy_api_nodes | ||
| comfy_compatibility | ||
| comfy_config | ||
| comfy_execution | ||
| comfy_extras | ||
| custom_nodes | ||
| docs | ||
| input | ||
| models | ||
| output | ||
| pkg | ||
| pypi | ||
| tests | ||
| .dockerignore | ||
| .editorconfig | ||
| .gitattributes | ||
| .gitignore | ||
| amd.Dockerfile | ||
| CODEOWNERS | ||
| CONTRIBUTING.md | ||
| docker-compose.yml | ||
| Dockerfile | ||
| LICENSE | ||
| main.py | ||
| mypy.ini | ||
| pyproject.toml | ||
| pytest.ini | ||
| QUANTIZATION.md | ||
| README.md | ||
| SPONSORS.md | ||
ComfyUI LTS
A vanilla, up-to-date fork of ComfyUI intended for long term support (LTS) from AppMana and Hidden Switch.
Key Features and Differences
This LTS fork enhances vanilla ComfyUI with enterprise-grade features, focusing on stability, ease of deployment, and scalability while maintaining full compatibility.
Deployment and Installation
- Pip and UV Installable: Install via
piporuvdirectly from GitHub. No manual cloning required for users. - Automatic Model Downloading: Missing models (e.g., Stable Diffusion, FLUX, LLMs) are downloaded on-demand from Hugging Face or CivitAI.
- Docker and Containers: First-class support for Docker and Kubernetes with optimized containers for NVIDIA and AMD.
Scalability and Performance
- Distributed Inference: Run scalable inference clusters with multiple workers and frontends using RabbitMQ.
- Embedded Mode: Use ComfyUI as a Python library (
import comfy) inside your own applications without the web server. - LTS Custom Nodes: A curated set of "Installable" custom nodes (ControlNet, AnimateDiff, IPAdapter) optimized for this fork.
Enhanced Capabilities
- LLM Support: Native support for Large Language Models (LLaMA, Phi-3, etc.) and multi-modal workflows.
- API and Configuration: Enhanced API endpoints and extensive configuration options via CLI args, env vars, and config files.
- Tests: Automated test suite ensuring stability for new features.
Quickstart (Linux)
UI Users
For users who want to run ComfyUI for generating images and videos.
-
Install
uv:curl -LsSf https://astral.sh/uv/install.sh | sh -
Create a Workspace:
mkdir comfyui-workspace cd comfyui-workspace -
Install and Run:
# Create a virtual environment uv venv --python 3.12 # Install ComfyUI LTS uv pip install --torch-backend=auto "comfyui@git+https://github.com/hiddenswitch/ComfyUI.git" # Run uv run comfyui
Developers
For developers contributing to the codebase or building on top of it.
-
Clone the Repository:
git clone https://github.com/hiddenswitch/ComfyUI.git cd ComfyUI -
Setup Environment:
# Create virtual environment uv venv --python 3.12 source .venv/bin/activate # Install in editable mode with dev dependencies uv pip install -e .[dev] -
Run:
uv run comfyui
Documentation
Full documentation is available in docs/index.md.
Core
Features & Workflows
- Large Language Models
- Video Workflows (AnimateDiff, SageAttention, etc.)
- Other Features (SVG, Ideogram)
Extending ComfyUI
- Custom Nodes (Installing & Authoring)
- API Usage (Python, REST, Embedded)