Upload README.md with huggingface_hub
Browse files
README.md
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
tags:
|
| 4 |
+
- qwen
|
| 5 |
+
- qwen-image
|
| 6 |
+
- lora
|
| 7 |
+
- diffusers
|
| 8 |
+
- image-generation
|
| 9 |
+
base_model: Qwen/Qwen-Image
|
| 10 |
+
---
|
| 11 |
+
|
| 12 |
+
# Qwen-Image with Integrated LoRA
|
| 13 |
+
|
| 14 |
+
This is a Qwen-Image model with integrated LoRA weights for custom character generation.
|
| 15 |
+
|
| 16 |
+
## Model Details
|
| 17 |
+
|
| 18 |
+
- **Base Model**: Qwen/Qwen-Image
|
| 19 |
+
- **LoRA**: Integrated custom LoRA for character generation
|
| 20 |
+
- **Format**: Diffusers
|
| 21 |
+
- **Precision**: bfloat16
|
| 22 |
+
- **Framework**: PyTorch
|
| 23 |
+
|
| 24 |
+
## Usage
|
| 25 |
+
|
| 26 |
+
```python
|
| 27 |
+
from diffusers import DiffusionPipeline
|
| 28 |
+
import torch
|
| 29 |
+
|
| 30 |
+
pipe = DiffusionPipeline.from_pretrained(
|
| 31 |
+
"n01e1se/qwen-image-lora",
|
| 32 |
+
torch_dtype=torch.bfloat16,
|
| 33 |
+
)
|
| 34 |
+
|
| 35 |
+
pipe.enable_sequential_cpu_offload()
|
| 36 |
+
|
| 37 |
+
image = pipe(
|
| 38 |
+
prompt="ma11en1a elegant woman with voluminous red curls",
|
| 39 |
+
num_inference_steps=50,
|
| 40 |
+
width=1024,
|
| 41 |
+
height=1024,
|
| 42 |
+
).images[0]
|
| 43 |
+
|
| 44 |
+
image.save("output.png")
|
| 45 |
+
```
|
| 46 |
+
|
| 47 |
+
## Example Images
|
| 48 |
+
|
| 49 |
+
### Example 1
|
| 50 |
+

|
| 51 |
+
|
| 52 |
+
### Example 2
|
| 53 |
+

|
| 54 |
+
|
| 55 |
+
### Example 3
|
| 56 |
+

|
| 57 |
+
|
| 58 |
+
## Notes
|
| 59 |
+
|
| 60 |
+
- The LoRA weights have been merged into the base model weights
|
| 61 |
+
- Use CPU offloading for systems with limited GPU memory
|
| 62 |
+
- Recommended image size: 1024x1024
|
| 63 |
+
- Recommended steps: 50
|