ComfyUI
=======
The most powerful and modular stable diffusion GUI and backend.
-----------
![ComfyUI Screenshot](comfyui_screenshot.png)
This ui will let you design and execute advanced stable diffusion pipelines using a graph/nodes/flowchart based interface. For some workflow examples and see what ComfyUI can do you can check out:
### [ComfyUI Examples](https://comfyanonymous.github.io/ComfyUI_examples/)
### [Installing ComfyUI](#installing)
## Features
- Nodes/graph/flowchart interface to experiment and create complex Stable Diffusion workflows without needing to code anything.
- Fully supports SD1.x, SD2.x, [SDXL](https://comfyanonymous.github.io/ComfyUI_examples/sdxl/), [Stable Video Diffusion](https://comfyanonymous.github.io/ComfyUI_examples/video/) and [Stable Cascade](https://comfyanonymous.github.io/ComfyUI_examples/stable_cascade/)
- Asynchronous Queue system
- Many optimizations: Only re-executes the parts of the workflow that changes between executions.
- Command line option: ```--lowvram``` to make it work on GPUs with less than 3GB vram (enabled automatically on GPUs with low vram)
- Works even if you don't have a GPU with: ```--cpu``` (slow)
- Can load ckpt, safetensors and diffusers models/checkpoints. Standalone VAEs and CLIP models.
- Embeddings/Textual inversion
- [Loras (regular, locon and loha)](https://comfyanonymous.github.io/ComfyUI_examples/lora/)
- [Hypernetworks](https://comfyanonymous.github.io/ComfyUI_examples/hypernetworks/)
- Loading full workflows (with seeds) from generated PNG files.
- Saving/Loading workflows as Json files.
- Nodes interface can be used to create complex workflows like one for [Hires fix](https://comfyanonymous.github.io/ComfyUI_examples/2_pass_txt2img/) or much more advanced ones.
- [Area Composition](https://comfyanonymous.github.io/ComfyUI_examples/area_composition/)
- [Inpainting](https://comfyanonymous.github.io/ComfyUI_examples/inpaint/) with both regular and inpainting models.
- [ControlNet and T2I-Adapter](https://comfyanonymous.github.io/ComfyUI_examples/controlnet/)
- [Upscale Models (ESRGAN, ESRGAN variants, SwinIR, Swin2SR, etc...)](https://comfyanonymous.github.io/ComfyUI_examples/upscale_models/)
- [unCLIP Models](https://comfyanonymous.github.io/ComfyUI_examples/unclip/)
- [GLIGEN](https://comfyanonymous.github.io/ComfyUI_examples/gligen/)
- [Model Merging](https://comfyanonymous.github.io/ComfyUI_examples/model_merging/)
- [LCM models and Loras](https://comfyanonymous.github.io/ComfyUI_examples/lcm/)
- [SDXL Turbo](https://comfyanonymous.github.io/ComfyUI_examples/sdturbo/)
- Latent previews with [TAESD](#how-to-show-high-quality-previews)
- Starts up very fast.
- Works fully offline: will never download anything.
- [Config file](extra_model_paths.yaml.example) to set the search paths for models.
Workflow examples can be found on the [Examples page](https://comfyanonymous.github.io/ComfyUI_examples/)
## Shortcuts
| Keybind | Explanation |
|---------------------------|--------------------------------------------------------------------------------------------------------------------|
| Ctrl + Enter | Queue up current graph for generation |
| Ctrl + Shift + Enter | Queue up current graph as first for generation |
| Ctrl + Z/Ctrl + Y | Undo/Redo |
| Ctrl + S | Save workflow |
| Ctrl + O | Load workflow |
| Ctrl + A | Select all nodes |
| Alt + C | Collapse/uncollapse selected nodes |
| Ctrl + M | Mute/unmute selected nodes |
| Ctrl + B | Bypass selected nodes (acts like the node was removed from the graph and the wires reconnected through) |
| Delete/Backspace | Delete selected nodes |
| Ctrl + Delete/Backspace | Delete the current graph |
| Space | Move the canvas around when held and moving the cursor |
| Ctrl/Shift + Click | Add clicked node to selection |
| Ctrl + C/Ctrl + V | Copy and paste selected nodes (without maintaining connections to outputs of unselected nodes) |
| Ctrl + C/Ctrl + Shift + V | Copy and paste selected nodes (maintaining connections from outputs of unselected nodes to inputs of pasted nodes) |
| Shift + Drag | Move multiple selected nodes at the same time |
| Ctrl + D | Load default graph |
| Q | Toggle visibility of the queue |
| H | Toggle visibility of history |
| R | Refresh graph |
| Double-Click LMB | Open node quick search palette |
Ctrl can also be replaced with Cmd instead for macOS users
# Installing
## Windows
There is a portable standalone build for Windows that should work for running on Nvidia GPUs or for running on your CPU only on the [releases page](https://github.com/comfyanonymous/ComfyUI/releases).
### [Direct link to download](https://github.com/comfyanonymous/ComfyUI/releases/download/latest/ComfyUI_windows_portable_nvidia_cu121_or_cpu.7z)
Simply download, extract with [7-Zip](https://7-zip.org) and run. Make sure you put your Stable Diffusion checkpoints/models (the huge ckpt/safetensors files) in: ComfyUI\models\checkpoints
If you have trouble extracting it, right click the file -> properties -> unblock
#### How do I share models between another UI and ComfyUI?
See the [Config file](extra_model_paths.yaml.example) to set the search paths for models. In the standalone windows build you can find this file in the ComfyUI directory. Rename this file to extra_model_paths.yaml and edit it with your favorite text editor.
## Jupyter Notebook
To run it on services like paperspace, kaggle or colab you can use my [Jupyter Notebook](notebooks/comfyui_colab.ipynb)
## Manual Install (Windows, Linux)
Git clone this repo.
Put your SD checkpoints (the huge ckpt/safetensors files) in: models/checkpoints
Put your VAE in: models/vae
### AMD GPUs (Linux only)
AMD users can install rocm and pytorch with pip if you don't have it already installed, this is the command to install the stable version:
```pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/rocm5.7```
This is the command to install the nightly with ROCm 6.0 which might have
没有合适的资源?快使用搜索试试~ 我知道了~
非常强大和模块化的 stable diffusion GUI ComfyUI
共284个文件
py:142个
js:53个
json:14个
需积分: 0 0 下载量 159 浏览量
2024-04-10
17:47:54
上传
评论
收藏 1.36MB ZIP 举报
温馨提示
非常强大和模块化的 stable diffusion GUI ComfyUI
资源推荐
资源详情
资源评论
收起资源包目录
非常强大和模块化的 stable diffusion GUI ComfyUI (284个子文件)
_output_images_will_be_put_here 0B
update_comfyui.bat 276B
run_cpu.bat 88B
run_nvidia_gpu.bat 82B
CODEOWNERS 24B
litegraph.css 13KB
style.css 10KB
groupNodeManage.css 3KB
userSelection.css 3KB
spinner.css 637B
user.css 28B
example_node.py.example 5KB
logging.js.example 2KB
extra_model_paths.yaml.example 1KB
.gitignore 285B
.gitignore 12B
index.html 1KB
pytest.ini 123B
comfyui_colab.ipynb 16KB
litegraph.core.js 480KB
app.js 61KB
groupNode.js 38KB
groupNode.test.js 37KB
colorPalette.js 28KB
maskeditor.js 26KB
widgetInputs.js 22KB
widgetInputs.test.js 17KB
ui.js 17KB
widgets.js 15KB
pnginfo.js 13KB
groupNodeManage.js 12KB
api.js 11KB
nodeTemplates.js 11KB
ezgraph.js 10KB
groupOptions.js 9KB
domWidget.js 9KB
users.test.js 9KB
rerouteNode.js 9KB
logging.js 8KB
draggableList.js 8KB
settings.js 7KB
extensions.test.js 7KB
editAttention.js 5KB
contextMenuFilter.js 5KB
undoRedo.js 4KB
clipspace.js 4KB
userSelection.js 4KB
index.js 3KB
slotDefaults.js 3KB
defaultGraph.js 3KB
snapToGrid.js 3KB
simpleTouchSupport.js 3KB
setup.js 2KB
utils.js 2KB
imagePreview.js 2KB
setup.js 2KB
keybinds.js 2KB
dynamicPrompts.js 2KB
toggleSwitch.js 1KB
saveImageExtraOutput.js 1KB
noteNode.js 1KB
invertMenuScrolling.js 805B
litegraph.js 767B
dialog.js 652B
linkRenderMode.js 534B
litegraph.extensions.js 524B
globalSetup.js 336B
uploadImage.js 327B
spinner.js 283B
afterSetup.js 266B
jest.config.js 247B
nopProxy.js 128B
vocab.json 1.01MB
package-lock.json 208KB
default_graph_sdxl1_0.json 3KB
tokenizer_config.json 806B
package.json 740B
sd1_clip_config.json 612B
sd2_clip_config.json 520B
clip_config_bigg.json 520B
special_tokens_map.json 472B
clip_vision_config_vitl.json 424B
clip_vision_config_g.json 419B
clip_vision_config_h.json 419B
jsconfig.json 128B
babel.config.json 90B
LICENSE 34KB
LICENSE 11KB
LICENSE 11KB
LICENSE-codeformer 2KB
LICENSE-DAT 11KB
LICENSE-ESRGAN 11KB
LICENSE-GFPGAN 22KB
LICENSE-HAT 1KB
LICENSE-lama 11KB
LICENSE-RealESRGAN 1KB
LICENSE-RestoreFormer 22KB
LICENSE-SCUNet 11KB
LICENSE-SPSR 11KB
LICENSE-SwiftSRGAN 7KB
共 284 条
- 1
- 2
- 3
资源评论
sky-line
- 粉丝: 145
- 资源: 10
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 基于Java的在线教育平台设计源码
- 升降压斩波电路电路图,buck-boost电路图
- Python 程序语言设计模式思路-结构型模式:组合模式:将对象组合成树形结构
- 毕业设计基于python矩阵分解的推荐算法研究源码+详细文档+全部数据资料 高分项目.zip
- 基于网络的入侵检测系统源码+数据集+详细文档(高分毕业设计).zip
- 微信小程序源码 旅行故事分享 - 面包旅行App界面设计与文本展示资源下载
- 微信小程序源码 创意互动游戏 - 你画我猜App下载
- 摸底考试_学生版20230305.py
- 课程设计基于FPGA数字钟课程设计源码+课设报告(95分以上).zip
- 基于Java的企业家申报系统设计源码
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功