Instructions to use Muapi/rouka-sdxl with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use Muapi/rouka-sdxl with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("stabilityai/stable-diffusion-xl-base-1.0", dtype=torch.bfloat16, device_map="cuda") pipe.load_lora_weights("Muapi/rouka-sdxl") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
Add 学校の廊下 / Rouka SDXL
Browse files- .gitattributes +1 -0
- README.md +38 -0
- preview.jpg +3 -0
- rouka-sdxl.safetensors +3 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
preview.jpg filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: openrail++
|
| 3 |
+
library_name: diffusers
|
| 4 |
+
base_model: stabilityai/stable-diffusion-xl-base-1.0
|
| 5 |
+
tags:
|
| 6 |
+
- lora
|
| 7 |
+
- text-to-image
|
| 8 |
+
- stable-diffusion-xl
|
| 9 |
+
- sdxl
|
| 10 |
+
- sdxl-1.0
|
| 11 |
+
pipeline_tag: text-to-image
|
| 12 |
+
---
|
| 13 |
+
|
| 14 |
+
# 学校の廊下 / Rouka SDXL
|
| 15 |
+
|
| 16 |
+

|
| 17 |
+
|
| 18 |
+
**Base model**: SDXL 1.0
|
| 19 |
+
**Trained words**: rouka, hallway, window, scenery, school, reflective floor, indoors, door, reflection, building, tiles, tile floor, sunlight, day, ceiling light, realistic, rouka
|
| 20 |
+
|
| 21 |
+
## 🧠 Usage (Python)
|
| 22 |
+
|
| 23 |
+
🔑 **Get your MUAPI key** from [muapi.ai/access-keys](https://muapi.ai/access-keys)
|
| 24 |
+
|
| 25 |
+
```python
|
| 26 |
+
import requests, os
|
| 27 |
+
url = "https://api.muapi.ai/api/v1/sdxl-lora-image"
|
| 28 |
+
headers = {"Content-Type": "application/json", "x-api-key": os.getenv("MUAPIAPP_API_KEY")}
|
| 29 |
+
payload = {
|
| 30 |
+
"prompt": "masterpiece, best quality",
|
| 31 |
+
"lora_model": "学校の廊下-rouka-sdxl",
|
| 32 |
+
"lora_strength": 1.0,
|
| 33 |
+
"width": 1024,
|
| 34 |
+
"height": 1024,
|
| 35 |
+
"num_images": 1
|
| 36 |
+
}
|
| 37 |
+
print(requests.post(url, headers=headers, json=payload).json())
|
| 38 |
+
```
|
preview.jpg
ADDED
|
Git LFS Details
|
rouka-sdxl.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f88954f0c7d667e870c94691179fb904c179ab819fa382a4ff280994c1443db1
|
| 3 |
+
size 132872504
|