Views
No views yet
| File | Purpose |
|---|---|
cond1.safetensors | Subject identity conditioning |
cond2.safetensors | Spatial/structural conditioning |
1from diffusers.pipelines import FluxKontextPipeline
2import torch
3
4pipe = FluxKontextPipeline.from_pretrained(
5 "black-forest-labs/FLUX.1-Kontext-dev", torch_dtype=torch.bfloat16
6).to("cuda")
7
8pipe.load_lora_weights("oindrila13saha/sigma-gen-lora", weight_name="cond1.safetensors", adapter_name="cond1")
9pipe.load_lora_weights("oindrila13saha/sigma-gen-lora", weight_name="cond2.safetensors", adapter_name="cond2")
10pipe.set_adapters(["cond1", "cond2"], adapter_weights=128)1@article{saha2025sigma,
2 title={SIGMA-GEN: Structure and Identity Guided Multi-subject Assembly for Image Generation},
3 author={Saha, Oindrila and Krs, Vojtech and Mech, Radomir and Maji, Subhransu and Blackburn-Matzen, Kevin and Gadelha, Matheus},
4 journal={arXiv preprint arXiv:2510.06469},
5 year={2025}
6}