2024-01-23 20:03:59 +08:00
2024-01-23 20:03:59 +08:00
2024-01-22 22:07:50 +08:00
2024-01-22 22:05:32 +08:00
2024-01-23 16:15:35 +08:00
2024-01-23 04:54:58 +08:00
2024-01-23 17:07:19 +08:00
2024-01-23 19:18:50 +08:00
2024-01-23 05:13:07 +08:00
2024-01-23 16:15:11 +08:00

ISID_

ComfyUI InstantID

Unofficial implementation of InstantID for ComfyUI

Dingtalk_20240123182131

项目介绍 | Info

  • 来自对InstantID的非官方实现

  • 版本:V1.0 同时支持本地、huggingface hub模型,支持通用styler(也与 PhotoMaker Styler 通用)

视频演示

https://github.com/ZHO-ZHO-ZHO/ComfyUI-InstantID/assets/140084057/7295c0d7-1d1b-4044-aea3-8efa67047362

节点说明 | Features

  • 基础模型加载 | base model loader

    • 📷ID Base Model Loader from hub 🤗:支持从 huggingface hub 自动下载模型,输入模型名称(如:wangqixun/YamerMIX_v8)即可
    • 📷ID Base Model Loader locally:支持加载本地模型(需 SDXL 系列模型)
  • InsightFace 模型加载 | 📷InsightFace Loader

    • :支持 CUDA 和 CPU
  • ID ControlNet 模型加载 | 📷ID ControlNet Loader

    • controlnet_path:ID ControlNet 模型地址
  • Ipadapter_instantid 模型加载 | 📷Ipadapter_instantid Loader

    • Ipadapter_instantid_path:模型路径
    • filename:模型名称
  • 提示词 + 风格 | 📷ID Prompt_Styler

    • 与各种提示词(文本)输入(如肖像大师等)、styler、 Photomaker Prompt_Styler 兼容
    • prompt、negative:正负提示词
    • style_name:支持官方提供的8种风格
      • (No style)
      • Watercolor
      • Film Noir
      • Neon
      • Jungle
      • Mars
      • Vibrant Color
      • Snow
      • Line art
  • InstantID 生成 | 📷InstantID Generation

    • face_image:接入预处理图像
    • pipe:接入模型
    • insightface:接入 insightface 模型
    • positivet、negative:正负提示词
    • ip_adapter_scale:IPA 强度
    • controlnet_conditioning_scale:ID Controlnet 强度
    • step:步数,官方默认30步
    • guidance_scale:提示词相关度,一般默认为5
    • width、height:尺寸设置(需1024维度)
    • seed:种子

风格 | Styles

ISID_STYLE

安装 | Install

  • 推荐使用管理器 ComfyUI Manager 安装(On the Way)

  • 手动安装:

    1. cd custom_nodes
    2. git clone https://github.com/ZHO-ZHO-ZHO/ComfyUI-InstantID.git
    3. cd custom_nodes/ComfyUI-InstantID
    4. pip install -r requirements.txt
    5. 重启 ComfyUI

使用方法 | How to Use

  • 下载 InstantID/ControlNetModel 中的 config.json 和 diffusion_pytorch_model.safetensors ,将模型地址填入 📷ID ControlNet Loader 节点中(例如:ComfyUI/custom_nodes/ComfyUI-InstantID/checkpoints/controlnet)

  • 下载 InstantID/ip-adapter 中的 ip-adapter.bin ,将其地址填入 📷Ipadapter_instantid Loader 节点中(例如:ComfyUI/custom_nodes/ComfyUI-InstantID/checkpoints)

  • 下载 DIAMONIK7777/antelopev2 中的所有模型,将其放入 ComfyUI//custom_nodes/ComfyUI-InstantID/models/antelopev2 中

工作流 | Workflows

更新日志

  • 20240123

    V1.0 上线:同时支持本地、huggingface hub托管模型,支持8种风格

  • 20240122

    创建项目

速度实测 | Speed

  • V1.0

    • A100 50步 14s

    image

Stars

Star History Chart

Credits

InstantID

S
Description
No description provided
Readme
95 KiB
Languages
Python 100%