AIGC 实战(环境篇) – 安装部署 ComfyUI

AIGC 杨海雄 4周前 (04-17) 141次浏览 0个评论
文章目录[隐藏]

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 插件安装]]

参考:
本地部署 ComfyUI


杨海雄 , 版权所有丨如未注明 , 均为原创丨本网站采用BY-NC-SA协议进行授权
转载请注明原文链接:AIGC 实战(环境篇) – 安装部署 ComfyUI
喜欢 (0)

您必须 登录 才能发表评论!