ComfyUI文生图

ComfyUI是一个基于节点的图形用户界面,专为Stable Diffusion设计,提供一种直观和灵活的方式来操作和管理图像生成过程。通过将不同的节点链接在一起,用户可以构建自己的图像生成工作流。

安装ComfyUI

git clone https://github.com/comfyanonymous/ComfyUI.git
cd ComfyUI
pip install -r requirements.txt
# pip install --upgrade setuptools

# 安装Manager
git clone https://github.com/ltdrdata/ComfyUI-Manager.git custom_nodes/ComfyUI-Manager

# 启动
python main.py --listen="0.0.0.0"

安装插件

汉化插件

Manager -> Custom Nodes Manager -> AIGODLIKE-COMFYUI-TRANSLATION

中文提示词插件

Manager -> Custom Nodes Manager -> ComfyUI_Custom_Nodes_AlekPet

Manager -> Custom Nodes Manager -> comfyui-mixlab-nodes

mkdir models/llamafile
cd models/llamafile
wget https://huggingface.co/microsoft/Phi-3-mini-4k-instruct-gguf/resolve/main/Phi-3-mini-4k-instruct-q4.gguf?download=true -O Phi-3-mini-4k-instruct-q4.gguf

https://github.com/thisjam/comfyui-sixgod_prompt

辅助工具

Manager -> Custom Nodes Manager -> ComfyUI-Custom-Scripts

下载模型

cd models/checkpoints
wget https://civitai.com/api/download/models/128713\?type\=Model\&format\=SafeTensor\&size\=pruned\&fp\=fp16 -O dreamshaper_8.safetensors

启动运行

python main.py

# http://127.0.0.1:8188

文生图例子

提示词:枯藤老树昏鸦,小桥流水人家