File size: 2,696 Bytes
00d44ba
 
 
 
 
 
 
 
 
f3a6ace
00d44ba
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
f3a6ace
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
---
tags:
- text-to-image
- lora
- diffusers
- template:diffusion-lora
base_model: black-forest-labs/FLUX.1-Kontext-dev
instance_prompt: null
license: apache-2.0
pipeline_tag: image-to-image
---


# RefControl Flux Kontext – Reference Canny LoRA

## πŸ“ Short description
A LoRA for **Flux Kontext Dev** that fuses a **reference image** (left) with a **canny edge map** (right).  
It preserves **identity and style** from the reference while following the **edges and outlines** from the control.

**Trigger word:** `refcontrolcanny`


[Demo video](https://youtu.be/T0IH0jT2h8M)

---


## πŸ“Š Examples

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

---

## πŸ“– Extended description
This LoRA was primarily trained on **humans and characters**, but it works with objects and scenes as well.  
The main purpose is to **preserve identity** β€” facial features, clothing, style β€” from the **reference image**, while using the **canny edge map** to define contours, composition, and layout.

---

## βš™οΈ How to use
1. Concatenate two images side by side:  
   - **Left:** reference image (person, character, or object).  
   - **Right:** canny edges (line structure).  
2. Add the trigger word `refcontrolcanny` in your prompt.  
3. Adjust LoRA weight (recommended **0.8–1.0**) depending on how strictly you want to follow edges.  

### βœ… Example prompt
refcontrolcanny, change canny edges to photo with reference from left

---

## 🎯 What it does
- Preserves **style and identity** of the reference.  
- Uses **canny edges** to control structure, outline, and composition.  
- Produces consistent results across different poses and layouts.  

---

## ⚑ Tips
- Works best if the canny map captures **clean edges** with minimal noise.  

---

## πŸ“Œ Use cases
- Character consistency in illustrations and comics.  
- Stylized redraws of objects with sharp outlines.  
- Scene composition based on silhouettes.  
- Rapid prototyping of layouts and storyboards.  

---