ComfyUI_InfiniteYou

bytedanceApache-2.0长期未更新

基于 FLUX 的身份保持图像生成 ComfyUI 原生节点,可在换脸、图像编辑时稳定保留人物面部特征。

🔥 [ICCV 2025 Highlight] Official ComfyUI native node supporting InfiniteYou with FLUX

暂无版本300star53fork同步于 2026-11-07 07:30 UTC

怎么上手

由 README 提炼,执行前请确认
cd ComfyUI/custom_nodes
git clone https://github.com/bytedance/ComfyUI_InfiniteYou.git
cd ComfyUI_InfiniteYou
pip install -r requirements.txt
硬件要求按 README 说明

BF16 全性能推理峰值显存约 43GB,FP8 精度约 24GB;README 未说明 CPU 运行及 GPU 厂商型号要求。

下载:源码 zip·GitHub Releases(安装包)本站不镜像安装包

项目说明

由 README 自动翻译提炼

字节官方 ComfyUI 原生节点,用 FLUX 做保身份的人像重绘

基于 FLUX 的身份保持图像生成 ComfyUI 原生节点,可在换脸、图像编辑时稳定保留人物面部特征。

核心能力

  • 通过 InfuseNet 以残差连接注入身份特征
  • 支持空或真实人脸姿态控制图的工作流
  • 提供双人 masked 多区域身份保持参考工作流
  • 兼容 FLUX.1-schnell 与 FP8 精度推理
  • 运行时自动下载 InfiniteYou 与 InsightFace 模型

容易踩的坑

FP8 推理所需的 FLUX FP8、VAE、文本编码器需手动下载到对应 models 目录;InfiniteYou 与 InsightFace AntelopeV2 模型首次运行才自动下载,离线环境需手动放置;模型仅限学术研究非商用,FLUX 等底模须遵守各自原始许可。

内容由模型根据 README 生成,可能不完整或不准确,以官方文档为准。看原文 README

最近发版

0 个版本

暂无 release 数据(可能没有发版,或尚未同步)。

用户点评

登录用户的真实使用记录,可按版本和硬件筛选
共 0 条

    还没有人点评。第一个说出真实体验的人最有价值。

    README 原文

    未翻译

    Official ComfyUI Support - InfiniteYou: Flexible Photo Recrafting While Preserving Your Identity (ICCV 2025 Highlight)

             

    This repository provides the official ComfyUI native node supporting InfiniteYou with FLUX.

    teaser

    Achieving flexible and high-fidelity identity-preserved image generation remains formidable, particularly with advanced Diffusion Transformers (DiTs) like FLUX. We introduce InfiniteYou (InfU), one of the earliest robust frameworks leveraging DiTs for this task. InfU addresses significant issues of existing methods, such as insufficient identity similarity, poor text-image alignment, and low generation quality and aesthetics. Central to InfU is InfuseNet, a component that injects identity features into the DiT base model via residual connections, enhancing identity similarity while maintaining generation capabilities. A multi-stage training strategy, including pretraining and supervised fine-tuning (SFT) with synthetic single-person-multiple-sample (SPMS) data, further improves text-image alignment, ameliorates image quality, and alleviates face copy-pasting. Extensive experiments demonstrate that InfU achieves state-of-the-art performance, surpassing existing baselines. In addition, the plug-and-play design of InfU ensures compatibility with various existing methods, offering a valuable contribution to the broader community.

    🛠️ Workflow Example

    This node adds InfiniteYou‑FLUX support to ComfyUI. In infinite_you_workflow.json, you can find a simple workflow demonstrating its usage with either an empty face‑pose control image or a real face‑pose control image, configured to run using FLUX FP8 precision. It also shows an example running the node with FLUX.1-schnell.

    basic workflow

    Extension: We also provide an example multi-id workflow for identity-preserved image generation of two people. This uses the masked multi-region test of single-ID InfiniteYou‑FLUX models with masked residual blending, and is provided for reference only.

    basic workflow

    🔧 Requirements and Installation

    Dependencies

    1. Install ComfyUI.

    2. Clone this repo under ComfyUI/custom_nodes and install the dependencies:

    cd ComfyUI/custom_nodes
    git clone https://github.com/bytedance/ComfyUI_InfiniteYou.git
    
    cd ComfyUI_InfiniteYou
    pip install -r requirements.txt
    

    Memory Requirements

    The full-performance BF16 model inference requires a peak VRAM of around 43GB. Running with FP8 precision requires a peak VRAM of around 24GB.

    💡 Usage

    1. Restart ComfyUI.

    2. Import the workflow from the examples folder. Please use multi-id workflow if needed.

    🏰 Required Models

    InfiniteYou and InsightFace Detection Models

    This node will automatically download the following models at runtime if they not exists. Alternatively, you may download them manually into the following locations. For InfiniteYou, you need at least image_proj_model.bin and infusenet_.*safetensors of the corresponding model versions.

    ModelLocation
    InfiniteYouComfyUI/models/infinite_you/
    InsightFace AntelopeV2ComfyUI/models/insightface/models/antelopev2

    You may follow ComfyUI FLUX examples to download FLUX and other models for full-performance inference.

    Other Required Models for Running FP8 Precision

    The FP8 InfiniteYou model can also be downloaded automatically or manually as above. To run with FP8 precision, other models need to be downloaded manually into the following locations.

    ModelLocation
    FLUX FP8ComfyUI/models/diffusion_models
    FLUX VAEComfyUI/models/vae
    Text Encoders FP8ComfyUI/models/text_encoders

    📜 Disclaimer and Licenses

    The images used in this repository and related demos are sourced from consented subjects or generated by the models. These pictures are intended solely to showcase the capabilities of our research. If you have any concerns, please feel free to contact us, and we will promptly remove any inappropriate content.

    The use of the released code, model, and demo must strictly adhere to the respective licenses. Our code is released under the Apache License 2.0, and our model is released under the Creative Commons Attribution-NonCommercial 4.0 International Public License for academic research purposes only. Any manual or automatic downloading of the face models from InsightFace, the FLUX.1-dev base model, LoRAs (Realism and Anti-blur), etc., must follow their original licenses and be used only for academic research purposes.

    This research aims to positively impact the field of Generative AI. Any usage of this method must be responsible and comply with local laws. The developers do not assume any responsibility for any potential misuse.

    📖 Citation

    If you find InfiniteYou useful for your research or applications, please cite our paper:

    @inproceedings{jiang2025infiniteyou,
      title={{InfiniteYou}: Flexible Photo Recrafting While Preserving Your Identity},
      author={Jiang, Liming and Yan, Qing and Jia, Yumin and Liu, Zichuan and Kang, Hao and Lu, Xin},
      booktitle={ICCV},
      year={2025}
    }
    

    We also appreciate it if you could give a star :star: to this repository and our main repository. Thanks a lot!