【生成模型】【ComfyUI(一)】Flux与Flux-Fill部署与API调用

ComfyUI安装

基础

conda create -n imggen-cu118 python=3.10.14
conda activate imggen-cu118

# torch
conda install pytorch==2.5.0 torchvision==0.20.0 torchaudio==2.5.0  pytorch-cuda=11.8 -c pytorch -c nvidia

mkdir projects && cd projects
git clone https://github.com/comfyanonymous/ComfyUI
cd ComfyUI
pip install -r requirements.txt

CUDA_VISIBLE_DEVICES=1 python main.py --listen $your_server_ip --port 8081 &
# 查看日志:tail -f user/comfyui_8081.log

# node: ComfyUI Manager, 方便节点的install, remove, disable, and enable 
cd custom_nodes/
git clone https://github.com/ltdrdata/ComfyUI-Manager.git

# 通过Manager => Custom Nodes Manger安装
ComfyUI Nodes for External Tooling  # comfyui-tooling-nodes
ComfyUI Essentials   # Node:Mask Previews+ 
net tool node for comfyui  # comfyui-tooling-nodes => Node:LoadImageBase64

常用节点

  1. ComfyUI Manager
    https://blog.csdn.net/2401_84760527/article/details/140261908
    通过这个节点,我们可以管理安装节点(模型checkpoint, lora, vae, encoder, controlnet)
    在这里插入图片描述

快捷方式

key note
Ctrl + 左键 区域选择
左键双击 打开节点快捷检索
新工具节点安装 Manager中可以安装新的工具节点,安装后需要重启
新模型代码节点安装 手动下载,放到对应位置;不需重启,但需要重现刷新web界面

工作流

Flux

工作流图片(可直接拖拽到ComfyUI中):

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值