File size: 1,804 Bytes
bb2d84c
c7edbe3
 
d107352
c7edbe3
 
 
2cc0fff
c7edbe3
 
 
011b3a0
 
50ea01e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
c7edbe3
 
 
 
 
 
 
 
bb2d84c
 
f84fa5b
bb2d84c
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


## Step by ste instruction
- **Use jpg format**, upload a minimum 1 image to "Input Images".
- Press "Generate LoRA".
- After a moment, your LoRA will be ready to download.
- Press "Generate image" to use LoRA above.
The generated image will have similar style as the sample images you uploaded.

If you're using Python, you can use the LoRA above to generate an image using instructions from DiffSynth-Studio (link below).

**And if you're happy with the result, please support me by pressing the like button 😄**

## For ComfyUI
- Download the generated LoRA.
- Use this sample workflow: <https://files.catbox.moe/4c6w5f.json>
- Replace the lightning LoRA with the LoRA you've been downloaded before.

Credit to *u/GBJI* from Reddit for the workflow.

## Question and Answer
**What is a lora?**  
A LoRA (Low-Rank Adaptation) is a small add-on for a pre-trained image generation model. It's trained on a specific set of images to teach the model a new style, character, or object without retraining the entire model.

**Is it different from IP Adapter?**  
Yes, it is different.  
IP Adapters are for style transfer (making your image look like a reference image). LoRA is for fine-tuning (teaching the model new concepts or styles).

**What can this app do?**
This demo helps you make new pictures that look like your example pictures, using a LoRA.

## Features
- Use a single image to generate LoRA (though more images are better).
- You can download the LoRA you generate.
- There's also an option to generate an image using the LoRA you created.

## Speed
- LoRA generation takes about 20 seconds (H200 ZeroGPU).
- Image generation using LoRA takes about 50 seconds (maybe something wrong here).

## References
- **DiffSynth-Studio**: <https://huggingface.co/DiffSynth-Studio/Qwen-Image-i2L>