Upload SDXL LoRA adapter
Browse files- README.md +32 -0
- adapter_config.json +20 -0
- pytorch_lora_weights.safetensors +3 -0
README.md
ADDED
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
library_name: diffusers
|
3 |
+
license: other
|
4 |
+
base_model: OnomaAIResearch/Illustrious-xl-early-release-v0
|
5 |
+
tags:
|
6 |
+
- stable-diffusion-xl
|
7 |
+
- stable-diffusion-xl-diffusers
|
8 |
+
- text-to-image
|
9 |
+
- diffusers
|
10 |
+
- lora
|
11 |
+
---
|
12 |
+
|
13 |
+
# SDXL LoRA Model
|
14 |
+
|
15 |
+
## Usage
|
16 |
+
|
17 |
+
from diffusers import DiffusionPipeline
|
18 |
+
import torch
|
19 |
+
|
20 |
+
pipe = DiffusionPipeline.from_pretrained(
|
21 |
+
"OnomaAIResearch/Illustrious-xl-early-release-v0",
|
22 |
+
torch_dtype=torch.float16
|
23 |
+
).to("cuda")
|
24 |
+
|
25 |
+
pipe.load_lora_weights("dada22231/ba2b5d89-3688-448e-9197-d9fd377c4f5a")
|
26 |
+
|
27 |
+
image = pipe(
|
28 |
+
"masterpiece, best quality, 1girl",
|
29 |
+
num_inference_steps=30,
|
30 |
+
guidance_scale=7.5
|
31 |
+
).images[0]
|
32 |
+
|
adapter_config.json
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"alpha": 128,
|
3 |
+
"base_model_name_or_path": "OnomaAIResearch/Illustrious-xl-early-release-v0",
|
4 |
+
"bias": "none",
|
5 |
+
"fan_in_fan_out": false,
|
6 |
+
"inference_mode": true,
|
7 |
+
"init_lora_weights": true,
|
8 |
+
"lora_alpha": 128,
|
9 |
+
"lora_dropout": 0.05,
|
10 |
+
"modules_to_save": null,
|
11 |
+
"peft_type": "LORA",
|
12 |
+
"r": 128,
|
13 |
+
"target_modules": [
|
14 |
+
"to_q",
|
15 |
+
"to_v",
|
16 |
+
"to_k",
|
17 |
+
"to_out.0"
|
18 |
+
],
|
19 |
+
"task_type": "DIFFUSION"
|
20 |
+
}
|
pytorch_lora_weights.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:b0bf44564b7006e0906bc4df50c2a0a5099a1c6170b63d44b8f8348ec066b8dd
|
3 |
+
size 681250340
|