ComfyUI Extension: ComfyUI_InfiniteYou
Official ComfyUI Support - InfiniteYou: Flexible Photo Recrafting While Preserving Your Identity
Custom Nodes (0)
README
Official ComfyUI Support - InfiniteYou: Flexible Photo Recrafting While Preserving Your Identity
<div align="center"><a href="https://bytedance.github.io/InfiniteYou"><img src="https://img.shields.io/static/v1?label=Project&message=Page&color=blue&logo=github-pages"></a> <a href="https://arxiv.org/abs/2503.16418"><img src="https://img.shields.io/static/v1?label=ArXiv&message=Paper&color=darkred&logo=arxiv"></a> <a href="https://github.com/bytedance/InfiniteYou"><img src="https://img.shields.io/static/v1?label=GitHub&message=Code&color=green&logo=github"></a> <a href="https://huggingface.co/ByteDance/InfiniteYou"><img src="https://img.shields.io/static/v1?label=%F0%9F%A4%96%20Released&message=Models&color=purple"></a> <a href="https://huggingface.co/spaces/ByteDance/InfiniteYou-FLUX"><img src="https://img.shields.io/static/v1?label=%F0%9F%A4%97%20Hugging%20Face&message=Demo&color=orange"></a>
</div>This repository provides the official ComfyUI native node for InfiniteYou with FLUX.
</details>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 the examples folder, 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.
🔧 Requirements and Installation
Dependencies
-
Install ComfyUI.
-
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
- Our InfiniteYou node has been added to the official Comfy Registry to ease installation: https://registry.comfy.org/publishers/yuminjia/nodes/infiniteyou. Therefore, you can also search
ComfyUI_InfiniteYou
in the ComfyUI Node Manager to install this official node.
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
-
Restart ComfyUI.
-
Import the workflow from the examples folder.
- Some important usage tips can be found in our main InfiniteYou repository.
🏰 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.
| Model | Location |
| ---- | ---- |
| InfiniteYou | ComfyUI/models/infinite_you/
|
| InsightFace AntelopeV2 | ComfyUI/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.
| Model | Location |
| ---- | ---- |
| FLUX FP8 | ComfyUI/models/diffusion_models
|
| FLUX VAE | ComfyUI/models/vae
|
| Text Encoders FP8 | ComfyUI/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:
@article{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},
journal={arXiv preprint},
volume={arXiv:2503.16418},
year={2025}
}
We also appreciate it if you could give a star :star: to this repository and our main repository. Thanks a lot!