新手入门
https://space.bilibili.com/1814756990/channel/collectiondetail?sid=2187799&spm_id_from=333.788.0.0
资料合集
https://github.com/yolain/ComfyUI-Yolain-Workflows
ComfyUI WIKI 速查手册
Examples of ComfyUI workflows github
Stable Diffusion 基本知识概论
金子的知识星球-AI绘画
SEAART AI科普
一键服务器部署和演示
https://github.com/ComfyWorkflows/ComfyUI-Launcher
web部署和演示
https://blog.csdn.net/gitblog_00723/article/details/141838802
在第一次运行StableDiffussion的webui.bat时,在installing requirements这里停留了半小时无反应,就把cmd关掉了。再打开webui.bat, 未跳出http地址或者下载库。最后通过运行 python D:\SD\sd-webui-aki-v4.8\sd-webui-aki-v4.8\webui.py,继续进入下载依赖库的流程。
然后遇到"No module 'xformers'. Proceeding without it. "的报错,是通过在webui-user.bat里设置'set COMMANDLINE_ARGS=--xformers'解决
官方ComfyUI的V0.2.7版本的包使用xformers 的方法:
https://www.reddit.com/r/comfyui/comments/1gnl352/comfyui_starting_log_errors_please_help/
即在用包内置的python.exe运行以下命令:
D:\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\python_embeded>python.exe -s -m pip install -U xformers --index-url https://download.pytorch.org/whl/cu124
Looking in indexes: https://download.pytorch.org/whl/cu124
Collecting xformers
Downloading https://download.pytorch.org/whl/cu124/xformers-0.0.28.post3-cp312-cp312-win_amd64.whl (168.8 MB)
---------------------------------------- 168.8/168.8 MB 978.2 kB/s eta 0:00:00
Requirement already satisfied: numpy in d:\comfyui_windows_portable_nvidia\comfyui_windows_portable\python_embeded\lib\site-packages (from xformers) (2.1.3)
Requirement already satisfied: torch==2.5.1 in d:\comfyui_windows_portable_nvidia\comfyui_windows_portable\python_embeded\lib\site-packages (from xformers) (2.5.1+cu124)
Requirement already satisfied: filelock in d:\comfyui_windows_portable_nvidia\comfyui_windows_portable\python_embeded\lib\site-packages (from torch==2.5.1->xformers) (3.16.1)
Requirement already satisfied: typing-extensions>=4.8.0 in d:\comfyui_windows_portable_nvidia\comfyui_windows_portable\python_embeded\lib\site-packages (from torch==2.5.1->xformers) (4.12.2)
Requirement already satisfied: networkx in d:\comfyui_windows_portable_nvidia\comfyui_windows_portable\python_embeded\lib\site-packages (from torch==2.5.1->xformers) (3.4.2)
Requirement already satisfied: jinja2 in d:\comfyui_windows_portable_nvidia\comfyui_windows_portable\python_embeded\lib\site-packages (from torch==2.5.1->xformers) (3.1.4)
Requirement already satisfied: fsspec in d:\comfyui_windows_portable_nvidia\comfyui_windows_portable\python_embeded\lib\site-packages (from torch==2.5.1->xformers) (2024.10.0)
Requirement already satisfied: setuptools in d:\comfyui_windows_portable_nvidia\comfyui_windows_portable\python_embeded\lib\site-packages (from torch==2.5.1->xformers) (75.3.0)
Requirement already satisfied: sympy==1.13.1 in d:\comfyui_windows_portable_nvidia\comfyui_windows_portable\python_embeded\lib\site-packages (from torch==2.5.1->xformers) (1.13.1)
Requirement already satisfied: mpmath<1.4,>=1.1.0 in d:\comfyui_windows_portable_nvidia\comfyui_windows_portable\python_embeded\lib\site-packages (from sympy==1.13.1->torch==2.5.1->xformers) (1.3.0)
Requirement already satisfied: MarkupSafe>=2.0 in d:\comfyui_windows_portable_nvidia\comfyui_windows_portable\python_embeded\lib\site-packages (from jinja2->torch==2.5.1->xformers) (3.0.2)
Installing collected packages: xformers
Successfully installed xformers-0.0.28.post3
提示词抄作业网站:
https://openart.ai/(可在线文生图,图转prompt,甚至训练Lora模型)
https://civitai.com/
https://arthub.ai/(需要非IE浏览器)
Lexica Aperture(可在线文生图,以及根据关键字搜图)
Midjourney提示词生成器 - 一个工具箱 - 好用的在线工具都在这里!
DiffMorpher的ComfyUI流程和论文:
https://github.com/AIFSH/DiffMorpher-ComfyUI
https://replicate.com/cjwbw/diffmorpher
https://kevin-thu.github.io/DiffMorpher_page/
-
个人理解
按我的理解,
文生图的话,基本流程是: 图像先通过CLIP(Contrastive Language-Image Pre-training 对比语言-图像预训练)把文字编码成潜在空间,然后传给Sampler。Sample根据模型Model和随机生成的噪声,对此潜空间推理,得到latent格式的图像,然后通过VAE Decoder解码成常规图片格式的文件
即如下图所示:
文生图.png
图生图的话,基本流程是在文生图的基础上,再加入Load image和VAE Encode两个节点。即如下图所示
术语解释:
CFG:表示对提示词的忠诚度。值越大,输出的图像越接近提示词的描述,但可能会降低图像质量,显得不真实或者不自然。0表示忽略提示词。一般在6~8之间。模型也会有推荐值,比如量化表的Flux 模型就是1.0
降噪(denoise): 表示去噪过程中不保留原图的程度 1.0 表示完全重新生成; 较低的值会保留更多原始图像的特征,太低的话会导致画面模糊。图生图建议值为0.5-0.7。文生图的话,填1就可以了。