---
title: refcontrol-flux-kontext-reference-lineart-lora
canonical_url: "https://www.modelscope.cn/models/AI-ModelScope/refcontrol-flux-kontext-reference-lineart-lora"
md_url: "https://www.modelscope.cn/models/AI-ModelScope/refcontrol-flux-kontext-reference-lineart-lora.md"
repository: AI-ModelScope/refcontrol-flux-kontext-reference-lineart-lora
last_updated: 2026-06-17
license: apache-2.0
pipeline_tag: text-to-image-synthesis
tasks:
  - text-to-image-synthesis
base_model:
  - black-forest-labs/FLUX.1-Kontext-dev
base_model_relation: adapter
parameters: 171.8M
tensor_type:
  - BF16
library_name:
  - lora
  - diffusers
  - safetensors
  - pytorch
frameworks:
  - pytorch
supports_inference: txt2img
downloads: 132
stars: 2
tags:
  - text-to-image
  - lora
  - diffusers
  - "template:diffusion-lora"
---

# refcontrol-flux-kontext-reference-lineart-lora

> refcontrol-flux-kontext-reference-lineart-lora - AI-ModelScope 在 ModelScope 开源的模型。license: apache-2.0 basemodel: black-forest-labs&#x2F;FLUX.1-Kontext-dev pipelinetag: image-to-image ---

AI-ModelScope/refcontrol-flux-kontext-reference-lineart-lora 是 ModelScope 魔搭社区上的 171.8M 参数text-to-image-synthesis模型，采用 apache-2.0 许可，基于 black-forest-labs/FLUX.1-Kontext-dev 构建，并支持在线推理（txt2img）。

- **Repository**: AI-ModelScope/refcontrol-flux-kontext-reference-lineart-lora
- **License**: apache-2.0
- **Tasks**: text-to-image-synthesis
- **Parameters**: 171.8M
- **Base model**: black-forest-labs/FLUX.1-Kontext-dev
- **Online inference**: txt2img
- **Tags**: text-to-image, lora, diffusers, template:diffusion-lora
- **Downloads**: 132
- **Stars**: 2
- **Last updated**: 2026-06-17

Source: https://www.modelscope.cn/models/AI-ModelScope/refcontrol-flux-kontext-reference-lineart-lora

---

## Model description 

license: apache-2.0
base_model:
- black-forest-labs&#x2F;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:** &#x60;refcontrollineart&#x60;

[Demo video](https://www.youtube.com/watch?v=M-aCCbmt93I)

| Reference | Result |
|-----------|--------|
| ![ref1](https://huggingface.co/thedeoxen/refcontrol-flux-kontext-reference-lineart-lora/resolve/main/examples/1a.png) | ![res1](https://huggingface.co/thedeoxen/refcontrol-flux-kontext-reference-lineart-lora/resolve/main/examples/1b.png) |
| ![ref2](https://huggingface.co/thedeoxen/refcontrol-flux-kontext-reference-lineart-lora/resolve/main/examples/2a.png) | ![res2](https://huggingface.co/thedeoxen/refcontrol-flux-kontext-reference-lineart-lora/resolve/main/examples/2b.png) |
| ![ref3](https://huggingface.co/thedeoxen/refcontrol-flux-kontext-reference-lineart-lora/resolve/main/examples/3a.png) | ![res3](https://huggingface.co/thedeoxen/refcontrol-flux-kontext-reference-lineart-lora/resolve/main/examples/3b.png) |

---

## 📖 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 &amp; white contour drawing).  
2. Add the trigger word &#x60;refcontrollineart&#x60; 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](/thedeoxen/refcontrol-flux-kontext-reference-lineart-lora/tree/main) them in the Files & versions tab.
