前往 WaytoAGI 飞书知识库 · 1 亿+ 次访问的开源 AI 知识库 →
通往 AGI 之路 WaytoAGI

知识库 · ComfyUI 工作流

Comfyui Kolors快手文生图大模型

Kolors是快手团队开发的大规模文生图模型,支持中英文输入,视觉质量与语义准确度出色。本文介绍其在ComfyUI中的安装、IPAdapter、FaceID与ControlNet使用方法。

ComfyUIKolors文生图AI绘画

Kolors 是一个基于潜在扩散的大规模文本生成图像模型,由快手 Kolors 团队开发。Kolors 在数十亿对文本图像对上进行了训练,在视觉质量、复杂语义准确性以及中英文字符的文本渲染方面,相较于开源和闭源模型都表现出显著优势。此外,Kolors 支持中文和英文输入,在理解和生成中文特定内容方面表现出强劲的性能。

工作流与模型地址

https://pan.baidu.com/s/1u2DX1g-2KGUzSZD_RwBXaQ?pwd=cycy

https://pan.quark.cn/s/2e4f0e87dd06

文档说明

https://xiaobot.net/post/14922d26-8bcb-4138-b8ee-e5234e576c03

项目地址

https://github.com/Kwai-Kolors/Kolors/tree/master?tab=readme-ov-file

🎬 此处为内嵌视频或网页,打开原链接

安装

ComfyUI-Kolors-MZ

这个节点是一个可以让Kolors支持cn和IPAdapter的,采样器使用的是我们正常使用的ksampler

ComfyUI-Kolors-MZ https://github.com/MinusZoneAI/ComfyUI-Kolors-MZ

unet模型放置在 models/unet/ 文件夹下 下载地址: https://huggingface.co/Kwai-Kolors/Kolors/blob/main/unet/diffusion_pytorch_model.fp16.safetensors

chatglm3放置在 models/LLM/ 文件夹下 下载地址: https://huggingface.co/Kijai/ChatGLM3-safetensors/blob/main/chatglm3-fp16.safetensors

使用ipadapter

IPAdapter节点 https://github.com/cubiq/ComfyUI_IPAdapter_plus

Kolors-IP-Adapter-Plus.bin, IPAdapter Plus for Kolors model (/ComfyUI/models/ipadapter)

clip-vit-large-patch14-336.bin, download and rename only for Kolors models (/ComfyUI/models/clip_vision)

IPAdapterFaceIDPlus

Kolors的IP-Adapter-FaceID-Plus 来了

使用 insightface 生成的人脸 ID 嵌入和面部区域的 CLIP 特征来保持人脸 ID 和结构信息。

https://huggingface.co/Kwai-Kolors/Kolors-IP-Adapter-FaceID-Plus

clip-vit-large-patch14-336. bin,仅为Kolors型号下载和重命名 /ComfyUI/models/clip_vision

Kolors-IP-Adapter-FaceID-Plus. bin,用于Kolors模型的IPAdapter FaceIDv2。/ComfyUI/models/ipadapter

需要Insight Face antelopev2模型(如果之前用过instantID就应该是安装过了)

注意:Kolors在Insight Face antelopev2模型上进行了训练,您需要手动下载它并将其放置在models/inisghtface目录中。

InsightFace 模型是 antelopev2(不是经典的 buffalo_l)。下载模型,解压并将它们放在 ComfyUI/models/insightface/models/antelopev2 目录中

https://huggingface.co/MonsterMMORPG/tools/tree/main

构建了由 200 多张参考图像和文本提示组成的测试集,邀请图像专家根据五个标准评估生成的图像,Kolors-IP-Adapter-FaceID-Plus 在所有指标上都优于 SDXL-IP-Adapter-FaceID-Plus,且前者使用中文提示,后者使用英文提示

使用controlNet

现在有depth、canny、pose,基本controlNet就齐整了。

Kwai-Kolors/Kolors-ControlNet-Depth

https://huggingface.co/Kwai-Kolors/Kolors-ControlNet-Depth/tree/main

Kwai-Kolors/Kolors-ControlNet-Canny

https://huggingface.co/Kwai-Kolors/Kolors-ControlNet-Canny/tree/main

Kwai-Kolors/Kolors-ControlNet-Pose

https://huggingface.co/Kwai-Kolors/Kolors-ControlNet-Pose/tree/main

使用PuLId