ComfyUI tool for parameter-efficient portrait synthesis (CVPR 2025 paper)
Top 76.7% on sourcepulse
This repository provides the official ComfyUI implementation of HyperLoRA, a parameter-efficient adaptive generation method for personalized portrait synthesis. It addresses limitations of existing methods like LoRA (resource-intensive per-person training) and IP-Adapter (potential lack of naturalness) by generating LoRA weights adaptively, achieving zero-shot personalized generation with high fidelity and editability. The target audience includes researchers and users focused on realistic and controllable portrait generation.
How It Works
HyperLoRA decomposes into Hyper ID-LoRA and Hyper Base-LoRA. The ID-LoRA learns identity information, while the Base-LoRA handles other attributes like background and clothing, preventing feature leakage. During training, only the HyperLoRA modules are updated, keeping the base SDXL model and encoders frozen. At inference, the ID-LoRA is integrated into SDXL for personalization, with the Base-LoRA being optional. This approach merges LoRA's performance with adapter-based zero-shot capabilities.
Quick Start & Requirements
models/hyper_lora/
, models/insightface/
).fcsks
, fxhks
, fhyks
). Recommended stop_at_clip_layer
is -2.Highlighted Details
_fidelity
for better detail and _edit
for enhanced editability.Maintenance & Community
Licensing & Compatibility
Limitations & Caveats
The CC BY-NC 4.0 model license restricts commercial use. The project recommends using FaceDetailer or ControlNet for repairing small faces or improving stability due to limited trained face resolution.
1 month ago
Inactive