--- license: cc-by-nc-sa-4.0 base_model: Qwen/Qwen-Image-2.1 pipeline_tag: image-to-image library_name: diffusers tags: - makeup-transfer - makeup-removal - image-editing - one-step-diffusion - flow-matching - qwen-image - lora --- # Reconstruct and Verify: One-Step Diffusion for High-Fidelity Makeup Transfer

arXiv (Coming Soon)  Project Homepage  GitHub Code  HF Space

Official pretrained weights for **Reconstruct and Verify: One-Step Diffusion for High-Fidelity Makeup Transfer (RnV)**. **RnV** performs high-fidelity **makeup transfer** and **makeup removal** in **one step** at up to **2K** resolution while preserving source facial identity, skin texture, expressions, lighting, and occlusions. --- ## 📦 Repository Contents ```text RnV/ ├── transfer/ │ ├── transfer_tau0p7.safetensors # Vivid (default, τ = 0.7) │ ├── transfer_tau0p8.safetensors # Balanced (τ = 0.8) │ └── transfer_tau0p9.safetensors # Faithful (τ = 0.9) ├── demakeup/ │ └── demakeup.safetensors # Makeup removal └── align/ ├── det_10g.onnx # SCRFD-10G face detector (for Gradio demo) └── 2d106det.onnx # 106-point landmark detector (for Gradio demo) ``` | File | Mode / Task | Description | SHA-256 (prefix) | | :--- | :--- | :--- | :---: | | `transfer/transfer_tau0p7.safetensors` | **Vivid** (`τ = 0.7`, default) | Reproduces the full makeup look, including foundation and base coverage | `aeda66cb3b4e` | | `transfer/transfer_tau0p8.safetensors` | **Balanced** (`τ = 0.8`) | Balances rich makeup reproduction with natural skin-tone blending | `210062e4ba10` | | `transfer/transfer_tau0p9.safetensors` | **Faithful** (`τ = 0.9`) | Preserves original skin tone and natural complexion, focusing on eye, lip, and cheek makeup | `dd47d175c6be` | | `demakeup/demakeup.safetensors` | **Makeup Removal** | Unified one-step makeup removal LoRA | `6334af93646c` | | `align/det_10g.onnx`, `align/2d106det.onnx` | **Face Alignment** | 106-landmark face alignment models for Gradio demo | `5838f7fe0536` / `f001b856447c` | --- ## 🚀 Quick Start ### 1. Clone Code & Download Weights ```bash git clone https://github.com/csbowei/RnV.git cd RnV pip install -r ./requirements.txt hf download csbowei/RnV --local-dir ./checkpoints ``` ### 2. Run Inference ```bash # Makeup transfer (--mode: vivid | balanced | faithful) python infer.py \ --task transfer \ --mode vivid \ --input ./examples/source/src_01.jpg \ --ref ./examples/reference/ref_01.jpg \ --model_path Qwen/Qwen-Image-2.1 \ --resolution 1024 \ --output_dir ./outputs/infer \ --save_concat # Makeup removal python infer.py \ --task demakeup \ --input ./examples/reference/ref_01.jpg \ --model_path Qwen/Qwen-Image-2.1 \ --resolution 1024 \ --output_dir ./outputs/infer \ --save_concat # Interactive Gradio demo python app.py --port 7860 ``` --- ## 📜 License - **RnV LoRA Weights (`transfer/*.safetensors`, `demakeup/*.safetensors`)**: Released under **[CC BY-NC-SA 4.0](./LICENSE)** for non-commercial academic research and creative use, subject to the upstream terms of [`Qwen/Qwen-Image-2.1`](https://huggingface.co/Qwen/Qwen-Image-2.1). - **Face Alignment Models (`align/det_10g.onnx`, `align/2d106det.onnx`)**: Sourced from [InsightFace](https://github.com/deepinsight/insightface) (`buffalo_l`) under InsightFace's non-commercial research license.