本地部署 ComfyUI

本地部署 ComfyUI

  • [ComfyUI 介绍](#ComfyUI 介绍)
  • [ComfyUI Github 地址](#ComfyUI Github 地址)
  • [部署 ComfyUI](#部署 ComfyUI)
  • [配置模型地址 or 下载模型](#配置模型地址 or 下载模型)
  • [启动 ComfyUI](#启动 ComfyUI)
  • [访问 ComfyUI](#访问 ComfyUI)
  • 使用技巧
  • [安装 ComfyUI-Manager](#安装 ComfyUI-Manager)
  • [安装 AIGODLIKE-COMFYUI-TRANSLATION](#安装 AIGODLIKE-COMFYUI-TRANSLATION)
  • [安装 ComfyUI-Custom-Scripts](#安装 ComfyUI-Custom-Scripts)
  • [安装 ComfyUI-WD14-Tagger](#安装 ComfyUI-WD14-Tagger)
  • [安装 ComfyUI_NetDist](#安装 ComfyUI_NetDist)
  • [安装 FreeU_Advanced](#安装 FreeU_Advanced)
  • [安装 Efficiency Nodes](#安装 Efficiency Nodes)
  • [安装 ComfyUI's ControlNet Auxiliary Preprocessors](#安装 ComfyUI's ControlNet Auxiliary Preprocessors)
  • [安装 UltimateSDUpscale](#安装 UltimateSDUpscale)
  • [安装 LCMSampler-ComfyUI](#安装 LCMSampler-ComfyUI)
  • [安装 AlekPet/ComfyUI_Custom_Nodes_AlekPet](#安装 AlekPet/ComfyUI_Custom_Nodes_AlekPet)
  • [安装 ComfyUI_IPAdapter_plus](#安装 ComfyUI_IPAdapter_plus)

ComfyUI 介绍

最强大、模块化的稳定扩散 GUI 和后端。

该用户界面将允许您使用基于图形/节点/流程图的界面设计和执行高级稳定扩散管道。

ComfyUI Github 地址

https://github.com/comfyanonymous/ComfyUI

部署 ComfyUI

克隆代码库,

复制代码
git clone https://github.com/comfyanonymous/ComfyUI
cd ComfyUI

创建虚拟环境,

复制代码
conda create -n comfyui python=3.10 -y
conda activate comfyui

使用 pip 安装 pytorch,

复制代码
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu121
# conda install -y -c "nvidia/label/cuda-12.1.0" cuda-runtime

验证 cuda 可用,

复制代码
python -c "import torch;print(torch.cuda.is_available());"

使用 pip 安装依赖,

复制代码
pip install -r requirements.txt

配置模型地址 or 下载模型

(1) 配置模型地址

拷贝 extra_model_paths.yaml.exampleextra_model_paths.yaml

修改示例如下,E:/workspace/sd-webui-aki-v4.4 是你的 Stable Diffusion Web UI的地址,

复制代码
a111:
    base_path: E:/workspace/sd-webui-aki-v4.4

(2) 下载模型

将您的 SD checkpoints(巨大的 ckpt/safetensors 文件)放入:models/checkpoints

将您的 VAE 放入:models/vae

启动 ComfyUI

运行,

复制代码
python main.py

访问 ComfyUI

使用浏览器访问,

http://127.0.0.1:8188/

使用技巧

页面底部显示图片预览

单击 "图片" 图标,

改变连接线的格式


配置 prompt 自动补全


安装 ComfyUI-Manager

复制代码
cd ComfyUI
git clone https://github.com/ltdrdata/ComfyUI-Manager.git custom_nodes/ComfyUI-Manager

安装 AIGODLIKE-COMFYUI-TRANSLATION

复制代码
git clone https://github.com/AIGODLIKE/AIGODLIKE-ComfyUI-Translation.git custom_nodes/AIGODLIKE-ComfyUI-Translation

或者,

安装 ComfyUI-Custom-Scripts

复制代码
git clone https://github.com/pythongosssss/ComfyUI-Custom-Scripts custom_nodes/ComfyUI-Custom-Scripts

或者,

安装 ComfyUI-WD14-Tagger

复制代码
https://github.com/pythongosssss/ComfyUI-WD14-Tagger

或者,

安装 ComfyUI_NetDist

复制代码
pip install requests

git clone https://github.com/city96/ComfyUI_NetDist custom_nodes/ComfyUI_NetDist

配置参考如下,

安装 FreeU_Advanced


安装 Efficiency Nodes

作者不在继续维护这个 repo 了

复制代码
pip install simpleeval


安装 ComfyUI's ControlNet Auxiliary Preprocessors


测试结果,

安装 UltimateSDUpscale

配置示例,

安装 LCMSampler-ComfyUI

下载 lcm-lora 权重,有 3 个 lora,分别对应不同的 base model,文件名都是 'pytorch_lora_weights.safetensors",需要修改为不同的名称。

保存到 models\Lora 目录下。

安装 AlekPet/ComfyUI_Custom_Nodes_AlekPet

安装 ComfyUI_IPAdapter_plus

完结!

相关推荐
Mr数据杨3 小时前
【ComfyUI】SDXL Turbo一步完成高速高效的图像生成
comfyui
Mr数据杨1 天前
【ComfyUI】图像描述词润色总结
comfyui
爱分享的飘哥16 天前
第八十三章:实战篇:文 → 图:Prompt 控制图像生成系统构建——从“咒语”到“神作”的炼成!
人工智能·计算机视觉·prompt·文生图·stablediffusion·diffusers·text-to-image
q_q王19 天前
ComfyUI工作流不动了?
大模型·comfyui·工作流
雨稚2 个月前
comfyUI-ControlNet-姿势控制&深度控制
sd·comfyui·contrlnet
这是一个懒人3 个月前
SD和comfyui常用模型介绍和下载
stable diffusion·comfyui·模型下载
一刀到底2113 个月前
comfyui利用 SkyReels-V2直接生成长视频本地部署问题总结 2 :寻找丢失的model 和工作流中 get set 方法的应用
人工智能·python·comfyui
一刀到底2113 个月前
comfyui 工作流中 视频长度和哪些参数有关? 生成15秒的视频,再加上RTX4060 8G显卡,尝试一下
人工智能·python·comfyui
浪淘沙jkp3 个月前
AI大模型学习三十、ubuntu安装comfyui,安装插件,修改返回405 bug,值得一看喔
人工智能·学习·ubuntu·comfyui·dify
一刀到底2113 个月前
ComfyUI 文生图,绘图要求中 正向提示词、负向提示词 有什么区别,webp又是什么格式 comfyui 那么喜欢它
人工智能·python·comfyui