Skip to content

Flux 使用 ControlNet 工作流

安装预处理器

在 ComfyUI-Manager 中搜索如下插件,进行安装。插件官方地址

img.png

该插件包括两部分处理器:

  1. AIO Aux Preprocessor:all in one 统一预处理器节点,仅需选择预处理器类型,但是无法设置相关处理器的特定参数,比如 canny 的 low_threshold 和 high_threshold 值

img.png

  1. 各种单独的预处理器:例如 canny 预处理器,如下,可以单独设置特定参数

img.png

各种预处理效果如下(高清大图):

img.png

预处理器与 controlNet 模型的对应关系见 这里

搭建工作流

使用 Shakker-Labs/FLUX.1-dev-ControlNet-Union-Pro 统一模型

模型下载:下载 模型 后放到 ComfyUI\models\controlnet\flux\ 中

模型特点:

  • 支持 canny/tile/depth/blur/pose/gray controlNet 模型
  • 推荐的 controlnet_conditioning_scale=0.3-0.8;start_percent=0,end_percent=0.6~0.8
  • 多个 ControlNets 模型可以串联使用

工作流:

img.png

注意:

  • controlNet 作为条件输入,连接了提示语和采样器
  • canny 较好的预处理器是:AnyLineArt
  • depth 较好的预处理器是:DepthAnythingV2
  • openpose 较好的预处理器是:Openpose

附录

pose 网站:https://openposes.com/

文章的最后,如果您觉得本文对您有用,请打赏一杯咖啡!感谢!