Run this model with HF Jobs

Run thedeoxen/refcontrol-flux-kontext-reference-lineart-lora on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs to fine-tune https://huggingface.co/thedeoxen/refcontrol-flux-kontext-reference-lineart-lora. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/thedeoxen/refcontrol-flux-kontext-reference-lineart-lora on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.

Model description

license: apache-2.0 base_model: - black-forest-labs/FLUX.1-Kontext-dev pipeline_tag: image-to-image

RefControl Flux Kontext – Reference Lineart LoRA

πŸ“ Short description

A LoRA for Flux Kontext Dev that fuses a reference image (left) with a lineart map (right).
It preserves identity and style from the reference while following the lines and contours from the control.

Trigger word: `refcontrollineart`

Demo video

Reference Result
ref1 res1
ref2 res2
ref3 res3

πŸ“– Extended description

This LoRA was primarily trained on human characters and objects, but it works well with stylized art too.
The main goal is to preserve identity β€” facial features, clothing, or style β€” from the reference image, while adapting them to the structure given by the lineart map.


βš™οΈ How to use

  1. Concatenate two images side by side:
    • Left: reference image (person, character, or object).
    • Right: lineart map (black & white contour drawing).
  2. Add the trigger word `refcontrollineart` in your prompt.
  3. Adjust LoRA weight (recommended 0.7–1.0).

βœ… Example prompt

refcontrolcanny, change ineart to photo with reference from left


🎯 What it does

  • Preserves identity and style of the reference.
  • Uses lineart to control outlines, proportions, and composition.
  • Works for both realistic and stylized generations.

⚑ Tips

  • Best results when the lineart map is clear and clean (minimal shading).

πŸ“Œ Use cases

  • Converting sketches to full artworks while keeping reference identity.
  • Character redraws in different art styles.
  • Consistent character design across multiple illustrations.
  • Turning lineart drafts into photorealistic or stylized renders.

Download model

Download them in the Files & versions tab.

Downloads last month
141
Inference Providers NEW

Model tree for thedeoxen/refcontrol-flux-kontext-reference-lineart-lora

Adapter
(246)
this model

Collection including thedeoxen/refcontrol-flux-kontext-reference-lineart-lora