Create README.md
Browse files
README.md
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
datasets:
|
| 4 |
+
- Rapidata/Face_Generation_Benchmark
|
| 5 |
+
language:
|
| 6 |
+
- en
|
| 7 |
+
base_model:
|
| 8 |
+
- stabilityai/stable-diffusion-xl-base-1.0
|
| 9 |
+
pipeline_tag: text-to-image
|
| 10 |
+
library_name: diffusers
|
| 11 |
+
tags:
|
| 12 |
+
- text-to-image
|
| 13 |
+
- lora
|
| 14 |
+
- diffusers
|
| 15 |
+
---
|
| 16 |
+
## Model description
|
| 17 |
+
|
| 18 |
+
# Anime-Otaku-Qwen-Image
|
| 19 |
+
|
| 20 |
+
**sdxl-face-lora** is a LoRA fine-tuned adapter for the [stable-diffusion-xl-base-1.0](https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0) model, trained on the [Rapidata/Face_Generation_Benchmark dataset](https://huggingface.co/datasets/Rapidata/Face_Generation_Benchmark). It specializes in generating face images.
|
| 21 |
+
|
| 22 |
+
---
|
| 23 |
+
|
| 24 |
+
## Usage
|
| 25 |
+
|
| 26 |
+
1. **Install dependencies** (if not installed):
|
| 27 |
+
|
| 28 |
+
```bash
|
| 29 |
+
pip install diffusers transformers accelerate safetensor torch
|
| 30 |
+
```
|
| 31 |
+
|
| 32 |
+
2. **Load base Qwen-Image and LoRA adapter**:
|
| 33 |
+
|
| 34 |
+
```python
|
| 35 |
+
from diffusers import DiffusionPipeline
|
| 36 |
+
import torch
|
| 37 |
+
pipe = DiffusionPipeline.from_pretrained(
|
| 38 |
+
"stabilityai/stable-diffusion-xl-base-1.0",
|
| 39 |
+
torch_dtype=torch.float16,
|
| 40 |
+
).to("cuda")
|
| 41 |
+
pipe.load_lora_weights("SkyAsl/sdxl-face-lora")
|
| 42 |
+
pipe.fuse_lora()
|
| 43 |
+
image = pipe("a high-quality portrait of a woman").images[0]
|
| 44 |
+
image.save("test.png")
|
| 45 |
+
```
|
| 46 |
+
|
| 47 |
+
---
|