File size: 2,311 Bytes
71f5363
0b35a03
 
 
 
71f5363
6fda490
71f5363
 
 
e28edca
0b35a03
 
 
 
e28edca
0b35a03
 
 
e28edca
0b35a03
e28edca
 
 
 
0b35a03
e28edca
0b35a03
 
 
 
e28edca
0b35a03
e28edca
0b35a03
 
 
 
 
cd3a25e
 
 
0b35a03
cd3a25e
 
826fa01
0b35a03
826fa01
 
0b35a03
826fa01
0b35a03
 
e28edca
 
0b35a03
 
 
 
e28edca
 
0b35a03
71f5363
 
fe18757
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
---
title: QIE-Image2GuideBody
emoji: 🎨✨
colorFrom: blue
colorTo: purple
sdk: gradio
sdk_version: 6.2.0
app_file: app.py
pinned: false
license: apache-2.0
short_description: Anime character to guide body converter
---

# 🎨✨ QIE-Image2GuideBody

A single-pass image converter that applies multiple LoRAs simultaneously to transform anime character images.

## Overview

This application performs conversion in a single inference pass by combining multiple LoRA models:

**Combined LoRAs:**
- **Lightning LoRA**: Enables fast 4-step inference
- **Stage1 LoRA**: Custom transformation effect 1
- **Stage2 LoRA**: Custom transformation effect 2

All three LoRAs are applied simultaneously with equal weights (1.0, 1.0, 1.0) to produce the final result.

## Technology

Built on [Qwen-Image-Edit-2511](https://huggingface.co/Qwen/Qwen-Image-Edit-2511) with:
- Multiple LoRA combination support
- [Qwen-Image-Lightning-2511](https://huggingface.co/lightx2v/Qwen-Image-Edit-2511-Lightning) for fast 4-step inference
- Custom LoRA models applied simultaneously

## Configuration

The application uses environment variables for customization:

### Model Settings
- `BASE_MODEL`: Base model repository (default: `Qwen/Qwen-Image-Edit-2511`)

### LoRA Settings
- `LIGHTNING_LORA_REPO`: Lightning 4-step LoRA repository (default: `lightx2v/Qwen-Image-Edit-2511-Lightning`)
- `LIGHTNING_LORA_WEIGHT`: Lightning LoRA weight filename (default: `Qwen-Image-Edit-2511-Lightning-4steps-V1.0-bf16.safetensors`)
- `STAGE1_LORA_REPO`: Repository for Stage 1 LoRA
- `STAGE1_LORA_WEIGHT`: Weight filename for Stage 1 LoRA
- `STAGE1_WEIGHT_DEFAULT`: Default weight value for Stage 1 LoRA (default: `1.0`)
- `STAGE2_LORA_REPO`: Repository for Stage 2 LoRA
- `STAGE2_LORA_WEIGHT`: Weight filename for Stage 2 LoRA
- `STAGE2_WEIGHT_DEFAULT`: Default weight value for Stage 2 LoRA (default: `1.0`)

### Prompt Settings
- `STAGE1_PROMPT`: Prompt used for inference (default: "Convert anime character to base body structure")
- `STAGE2_PROMPT`: Not used in current implementation (reserved for future use)

## Usage

1. Upload an anime character image
2. Click "Generate"
3. View the result with all LoRAs applied simultaneously

---

Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference