[来源关键摘录] 模块化节点式扩散模型工作流引擎仓库,以低显存调度与工作流可复现性成为 SD 生态核心生产力底座。
[正文前段节选] Skip to content
Navigation Menu
Appearance settings
You signed in with another tab or window. Reload to refresh your session.
You signed out in another tab or window. Reload to refresh your session.
You switched accounts on another tab or window. Reload to refresh your session.
Dismiss alert
{{ message }}
Repository navigation
NotificationsYou must be signed in to change notification settings
Fork17.6k (17.6k)
Star148k (148k)You must be signed in to star a repository
The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.
www.comfy.org/
aicomfycomfyuipythonpytorchstable-diffusion
GPL-3.0 license
Contributing
Security policy
Custom properties
148.2k stars
853 watching
Report repository
BranchesTags
Open more actions menu
Latest commit
6,401 Commits
Folders and files
Last commit message
Last commit date
comfy_api_nodes
comfy_config
comfy_execution
comfy_extras
custom_nodes
script_examples
.coderabbit.yaml
.gitattributes
.spectral.yaml
CONTRIBUTING.md
QUANTIZATION.md
agent_requirements.txt
comfyui_version.py
cuda_malloc.py
default_workflow.json
execution.py
extra_model_paths.yaml.example
folder_paths.py
hook_breaker_ac10a0.py
latent_preview.py
manager_requirements.txt
node_helpers.py
openapi.yaml
pyproject.toml
requirements.txt
View all files
Repository files navigation
The most powerful and modular AI engine for content creation.
ComfyUI is the AI creation engine for visual professionals who demand control over every model, every parameter, and every output. Its powerful and modular node graph interface empowers creatives to generate images, videos, 3D models, audio, and more...
ComfyUI natively supports the latest open-source state of the art models.
It is by far the most optimized inference engine for diffusion models in the world with a focus on local consumer hardware.
Can run even the biggest open source models on as low as 4GB vram + 8GB ram relatively quickly (saturating your GPU compute) using our state of the art asynchronous weight streaming technology.
Partner nodes provide access to the best closed source models such as Nano Banana, Seedance, Hunyuan3D, etc.
It is available on Windows, Linux, and macOS, locally with our desktop application, our portable install or on our cloud.
The most sophisticated workflows can be exposed through a simple UI thanks to App Mode.
It integrates seamlessly into production pipelines with our API endpoints.
A visual node graph for building and reusing image, video, audio, 3D, and text workflows without code.
Broad native model support. This is a representative list; browse the workflow library for maintained, ready-to-run templates.
Image generation: Stable Diffusion 1.5, SDXL, SD3.5, Flux.1, Flux.2, Qwen Image, Z-Image, Hunyuan Image 2.1, HiDream, Lumina Image 2.0, Chroma, Anima, LongCat Image, Ideogram 4, Krea 2, MageFlow, Microsoft Lens, PixelDiT, Kandinsky 5, Ernie Image and Moss Image.
Image editing: Flux Kontext, Flux.2 Klein, Qwen Image Edit, HiDream E1.1 and O1, OmniGen2, Boogu, JoyImage Edit, MageFlow Edit, LongCat Image Edit, Fibo 2.0, Flux 3 image klein.
Video generation: Wan 2.1 and 2.2, LTX-Video 2 and 2.3, HunyuanVideo 1.5, Kandinsky 5 Video, CogVideoX, Cosmos Predict2, Bernini-R, SCAIL 2, and Mochi.
Audio and video generation: MiniMax H3 and LTX-AV.
Audio generation: ACE-Step 1.5, Stable Audio 3, MiniMax Music 3 and Yue 2.
3D and vision: Hunyuan3D 2.1, TripoSplat, SeedVR2, SUPIR, Depth Anything 3, MoGe, SAM 3 and 3.1, RT-DETRv4, and BiRefNet.
Text generation: Gemma 3 and 4, Qwen3, Qwen3.5, and Qwen3-VL, including multimodal inputs.
Efficient local execution with asynchronous queueing, partial graph re-execution, smart VRAM and RAM management, model offloading, and support for quantized models.
Reusable subgraphs, workflow templates, App Mode, and a local API for integrating workflows into applications.
Load complete checkpoints or separate diffusion models, VAEs, text encoders, LoRAs, ControlNets, adapters, and upscalers from supported model formats.
Built-in tools for inpainting, outpainting, reference conditioning, masks and compositing, model merging, upscaling, frame interpolation, segmentation, depth estimation, and media processing.
Save and load workflows as JSON. You can also drag any image, video, audio, or 3D file made with ComfyUI onto the canvas to get back the full workflow that made it, seeds included.
Runs fully offline: core does not download anything unless you request it. Use --offline to disable the optional paid Comfy API nodes and force all built-in functionality to stay offline, or --disable-partner-nodes to only disable the API nodes.
Extend ComfyUI with custom nodes, installed and updated through ComfyUI-Manager.
Configure additional model locations with extra_model_paths.yaml.
Support for saving and loading high bit depth images and videos: 16 bit PNG images, 32 bit EXR, 10 bit AVIF are supported and more, including HDR.
Who it's for
Comfy Desktop
Anyone who wants ComfyUI running locally from a normal installer, on Windows or macOS. The easiest way to start.
Developer Platform
Developers who want to take Comfy to production. Deploy a workflow as an API endpoint that scales, or call thousands of models through one API.
Running Comfy without local hardware. Good for experimentation and lightweight workflows.
Describing what you want inside ComfyUI and having it plan, build and run the workflow, editing the canvas alongside you.
Driving ComfyUI from an MCP client, local or cloud: generate media, search models, nodes and templates, and run real workflows.
Driving the whole engine from a terminal. Built for CI jobs, scripting, and piping outputs somewhere else.
Comfy Enterprise
Organizations standardizing ComfyUI across teams: one approved reproducible build everywhere, dedicated GPU capacity and SLAs, commercial licensing and security review.
Comfy Desktop is the recommended way to install ComfyUI
It is the easiest and best way to get started, on Windows and macOS.
Other paths:
Windows Portable for a self-contained build you can unzip and run.
Comfy Cloud if you would rather not run it locally at all.
comfy-cli if you prefer a CLI: pip install comfy-cli && comfy install.
Developer Platform if you are deploying a workflow as a production API endpoint rather than running the app yourself.
Manual install, below, when you need control over your Python and Torch versions.
Manual install
First install PyTorch for your GPU, then:
git clone https://github.com/Comfy-Org/ComfyUI.git
pip install -r requirements.txt
python main.py
Python 3.13 is very well supported and 3.14 works, though some custom nodes may have
issues. torch 2.7 is minimally supported and cu130 or above is required on Nvidia 20
series and above; if your pytorch is more than 6 months old, please update it.
Put your checkpoints in models/checkpoints and your VAE in models/vae.
docs/installation.md has the full detail: PyTorch commands
for NVIDIA, AMD ROCm on Linux and Windows, Intel Arc, Apple Silicon, Huawei Ascend NPU,
Cambricon MLU and Iluvatar Corex, plus ComfyUI-Manager setup, portable builds, previews
Troubleshooting
Here are the most common things you can do to fix ComfyUI performance and other issues:
Nvidia: Make sure you are on pytorch cu130 or higher.
Remove all GGUF related nodes and models and delete them completely from your system. Use ComfyUI native formats like convrot int8 or w6a8 instead, they will be more than 2x faster.
Try the --disable-all-custom-nodes to disable all your custom nodes. Temporarily renaming the custom_nodes directory also works.
Remove all command line flags from ComfyUI. All of the command line flags that people claim improve performance do the opposite.
See CONTRIBUTING.md for how to ask questions, report issues, open pull
[...内容已截断,完整版请查看原文或 Wayback 快照]