CoolFace
Modelpublic

thedeoxen/refcontrol-FLUX.2-klein-9B-reference-depth-lora

sourceHugging Faceapache-2.0updated 4mo agoView on Hugging Face
76likes7.3kdownloads
Model Card

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

<Gallery />


๐Ÿ“Š Examples

<table> <thead> <tr> <th>Reference</th> <th>Depth</th> <th>Result</th> </tr> </thead> <tbody> <tr> <td><img src="https://huggingface.co/thedeoxen/refcontrol-FLUX.2-klein-9B-reference-depth-lora/resolve/main/images/1ref.png" width="320" /></td> <td><img src="https://huggingface.co/thedeoxen/refcontrol-FLUX.2-klein-9B-reference-depth-lora/resolve/main/images/1d.png" width="320" /></td> <td><img src="https://huggingface.co/thedeoxen/refcontrol-FLUX.2-klein-9B-reference-depth-lora/resolve/main/images/1res.png" width="320" /></td> </tr> <tr> <td><img src="https://huggingface.co/thedeoxen/refcontrol-FLUX.2-klein-9B-reference-depth-lora/resolve/main/images/2ref.png" width="320" /></td> <td><img src="https://huggingface.co/thedeoxen/refcontrol-FLUX.2-klein-9B-reference-depth-lora/resolve/main/images/2d.png" width="320" /></td> <td><img src="https://huggingface.co/thedeoxen/refcontrol-FLUX.2-klein-9B-reference-depth-lora/resolve/main/images/2res.png" width="320" /></td> </tr> <tr> <td><img src="https://huggingface.co/thedeoxen/refcontrol-FLUX.2-klein-9B-reference-depth-lora/resolve/main/images/3ref.png" width="320" /></td> <td><img src="https://huggingface.co/thedeoxen/refcontrol-FLUX.2-klein-9B-reference-depth-lora/resolve/main/images/3d.png" width="320" /></td> <td><img src="https://huggingface.co/thedeoxen/refcontrol-FLUX.2-klein-9B-reference-depth-lora/resolve/main/images/3res.png" width="320" /></td> </tr> <tr> <td><img src="https://huggingface.co/thedeoxen/refcontrol-FLUX.2-klein-9B-reference-depth-lora/resolve/main/images/4ref.png" width="320" /></td> <td><img src="https://huggingface.co/thedeoxen/refcontrol-FLUX.2-klein-9B-reference-depth-lora/resolve/main/images/4d.png" width="320" /></td> <td><img src="https://huggingface.co/thedeoxen/refcontrol-FLUX.2-klein-9B-reference-depth-lora/resolve/main/images/4res.png" width="320" /></td> </tr> <tr> <td><img src="https://huggingface.co/thedeoxen/refcontrol-FLUX.2-klein-9B-reference-depth-lora/resolve/main/images/5ref.png" width="320" /></td> <td><img src="https://huggingface.co/thedeoxen/refcontrol-FLUX.2-klein-9B-reference-depth-lora/resolve/main/images/5d.png" width="320" /></td> <td><img src="https://huggingface.co/thedeoxen/refcontrol-FLUX.2-klein-9B-reference-depth-lora/resolve/main/images/5res.png" width="320" /></td> </tr> </tbody> </table> ---

๐Ÿ“– 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

  1. 1.Use first image as depth reference, second image input
  2. 2.Add the trigger word `refcontrol` in your prompt.
  3. 3.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/comfyuicontrolnetaux

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