Instructions to use thedeoxen/refcontrol-FLUX.2-klein-9B-reference-depth-lora with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use thedeoxen/refcontrol-FLUX.2-klein-9B-reference-depth-lora with Diffusers:
pip install -U diffusers transformers accelerate
from diffusers import ControlNetModel, StableDiffusionControlNetPipeline controlnet = ControlNetModel.from_pretrained("thedeoxen/refcontrol-FLUX.2-klein-9B-reference-depth-lora") pipe = StableDiffusionControlNetPipeline.from_pretrained( "black-forest-labs/FLUX.2-klein-base-9B", controlnet=controlnet ) - Notebooks
- Google Colab
- Kaggle
- Local Apps
- Draw Things
RefControl FLUX.2 Klein 9B β Reference Depth LoRA
π Short description
A LoRA for FLUX.2 Klein 9B Base that fuses a reference image with a depth map.
It preserves identity and style from the reference while following the pose and structure from the depth map.
Trigger word: refcontrol
π Examples
| Reference | Depth | Result |
|---|---|---|
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
π Extended description
This LoRA was primarily trained on humans, but it also works with objects and stylized characters.
Its main purpose is to preserve identity β facial features, clothing, style, or object characteristics β from the reference image, while adapting the subject to the pose and composition defined by the depth map.
Part of the RefControl family: reference + control fusion for consistent, controllable generation on FLUX.2 Klein 9B Base.
βοΈ How to use
- Use first image as depth reference, second image input
- Add the trigger word
refcontrolin your prompt. - Adjust LoRA weight (recommended 0.8β1.0) depending on how strongly you want to preserve identity.
ComfyUI requirenments
For extracting depth you need to install nodes with depth estimation in workflow used:
https://github.com/Fannovel16/comfyui_controlnet_aux
Base model
Use with black-forest-labs/FLUX.2-klein-base-9B.
The undistilled Base variant is intended for LoRA training and custom pipelines (~50 inference steps, guidance_scale ~4.0).
β Example prompt
refcontrol
π― What it does
- Preserves character or object identity across generations.
- Embeds the subject into a new pose or scene defined by the depth map.
- Works best when the depth map has similar proportions and scale to the reference.
β‘ Tips
- Best results when the depth map is not drastically different in object scale from the reference.
- Combine with text prompts to refine background, lighting, or mood.
- Can be combined with other RefControl LoRAs (pose, lineart, canny) on compatible pipelines for multi-constraint generation.
π Use cases
- Human portraits in different poses.
- Consistent character design across multiple scenes.
- Object transformations (cars, furniture, props) with depth-guided placement.
- Storyboarding, comics, or animation frame generation.
π¦ Files
- Downloads last month
- -
Model tree for thedeoxen/refcontrol-FLUX.2-klein-9B-reference-depth-lora
Base model
black-forest-labs/FLUX.2-klein-base-9B













