Instructions to use ming0531/IrisMix with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use ming0531/IrisMix with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline from diffusers.utils import load_image # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("black-forest-labs/FLUX.2-klein-4B", dtype=torch.bfloat16, device_map="cuda") pipe.load_lora_weights("ming0531/IrisMix") prompt = "Turn this cat into a dog" input_image = load_image("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/cat.png") image = pipe(image=input_image, prompt=prompt).images[0] - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
import torch
from diffusers import DiffusionPipeline
from diffusers.utils import load_image
# switch to "mps" for apple devices
pipe = DiffusionPipeline.from_pretrained("black-forest-labs/FLUX.2-klein-4B", dtype=torch.bfloat16, device_map="cuda")
pipe.load_lora_weights("ming0531/IrisMix")
prompt = "Turn this cat into a dog"
input_image = load_image("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/cat.png")
image = pipe(image=input_image, prompt=prompt).images[0]IrisMix weights
Checkpoints of IrisMix: Compositional Makeup Transfer and Editing with Layered Diffusion. Project page: ming053l.github.io/IrisMix · Paper: arXiv 2611.35956 · Dataset: ming0531/LayerBeauty · Code: github.com/ming053l/IrisMix
LoRA adapters (rank 32) and skip-connection weights for FLUX.2 [klein] 4B. The base model is not included; it is downloaded from Hugging Face on first use.
| file | role | tensors | size (bytes) | sha256 |
|---|---|---|---|---|
irismix_lora_init.safetensors |
initial LoRA: creates the rank-32 LoRA modules (diffusers / PEFT format) | 120 LoRA | 66,866,216 | 6f05958ff2e5735de51acce6f2125c18246bf97c3e11c3e6eb87653124ea8786 |
irismix_decomposer.safetensors |
Decomposer, the reported model: transformer LoRA + skip convs skips.E.* (decompose) and skips.H.* (harmonise; not used at inference) |
120 LoRA + 12 skip | 68,709,512 | efa679e478c6087a033a3a168d7e40dfcc621d53e63e2e25dec6b02aea19f0c8 |
irismix_renderer.safetensors |
Renderer, the reported model: bias-corrected EMA of the render LoRA + skip convs skips.z.* |
120 LoRA + 6 skip | 67,786,352 | 1d4b1651bdd1888426ae71ee3f76920f94f5f18b95457e81d09a4420d967de5b |
LoRA tensor names follow the loaded PEFT modules (transformer_blocks.<i>.attn.to_q.lora_A.default_0.weight, ...);
the inference code copies them into the modules created from the initial LoRA and checks that all 120 match.
Dtypes: LoRA bf16, skip convs fp32. The files were converted from the training checkpoints without changing any value
(tensor-by-tensor equality checked).
Download:
huggingface-cli download ming0531/IrisMix --local-dir weights
The IrisMix Studio Space runs these weights. The inference code, IrisMix Studio and ComfyUI nodes are at github.com/ming053l/IrisMix.
Verify:
sha256sum weights/*.safetensors
Licence of the weights: CC BY-NC 4.0 (https://creativecommons.org/licenses/by-nc/4.0/), non-commercial use only. The face parser required at inference is itself non-commercial.
Terms of use
By downloading or using the IrisMix weights you agree to the following.
- Non-commercial only. CC BY-NC 4.0, for non-commercial research and education. Commercial use is not allowed: no selling, no paid products or services, and no training of models for commercial use.
- No unlawful or harmful use. Do not use it in ways that break the law or violate other people's rights, such as impersonation, deceptive face edits, harassment, or editing someone's photo without their consent.
- Citation is required. Any paper, report, code, model or dataset that uses it must cite the IrisMix paper (see Citation below).
Citation
@misc{lee2026irismix,
title = {{IrisMix}: Compositional Makeup Transfer and Editing with Layered Diffusion},
author = {Lee, Chia-Ming and Chang, Ming-Ching and Li, Xin and
Shuai, Hong-Han and Liu, Yu-Lun and Hsu, Chih-Chung},
year = {2026},
eprint = {2611.35956},
archivePrefix = {arXiv},
primaryClass = {cs.CV},
url = {https://arxiv.org/abs/2611.35956}
}
- Downloads last month
- 71
Model tree for ming0531/IrisMix
Base model
black-forest-labs/FLUX.2-klein-4B