请稍侯

comfyui 搭建使用 搭建配

24 March 2025

ComfyUI 搭建使用

搭建配置到 python venv 虚拟环境直接运行

# 创建 venv 虚拟环境
python -m venv venv

# 激活虚拟环境
source ./venv/bin/activate

# pytorch 安装
pip install torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cu126

# 安装依赖
pip install -r requirements.txt

# 运行
python main.py

创建并启动 comfyui.service


# 使用自定义的 github repo 添加了 run.sh comfyui.sh
# link: https://github.com/luowei/ComfyUI/blob/master/run.sh
# 添加 comfyui.service
./run.sh enable_launch_start

# 启动
sudo systemctl start comfyui.service
# 查看状态
sudo systemctl status comfyui.service

ComfyUI 中比较实用的插件

ComfyUI API使用指南
stable diffusion comfyui的api使用教程
使用python调用comfyui-api,实现出图自由
API调用ComfyUI模板高效文生图
零门槛AI 绘图:教你为客户定制 ComfyUI Serverless API 应用
ComfyUI的API聚合项目 comfy-flow-api
【全108集】目前B站最全的AI绘画网课SD+ComfyUI+Midjourney保姆级教程

相关链接 ComfyUI 手动安装
ComfyUI 设置外网访问