Update README.md
Browse files
README.md
CHANGED
@@ -1,5 +1,37 @@
|
|
1 |
-
---
|
2 |
-
license: other
|
3 |
-
license_name: fair-ai-public-license-1.0-sd
|
4 |
-
license_link: https://freedevproject.org/faipl-1.0-sd/
|
5 |
-
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: other
|
3 |
+
license_name: fair-ai-public-license-1.0-sd
|
4 |
+
license_link: https://freedevproject.org/faipl-1.0-sd/
|
5 |
+
---
|
6 |
+
|
7 |
+
SDXL Hyper version of Comradeship XL v14V.
|
8 |
+
|
9 |
+
Available in 6~15 steps / CFG 1.0 settings. Using the recommended settings, you can create images quickly.
|
10 |
+
|
11 |
+
```python
|
12 |
+
import torch
|
13 |
+
from diffusers import StableDiffusionXLPipeline, EulerAncestralDiscreteScheduler
|
14 |
+
|
15 |
+
pipe = StableDiffusionXLPipeline.from_pretrained(
|
16 |
+
"hanzogak/comradeshipXL-v14VT",
|
17 |
+
use_safetensors=True,
|
18 |
+
add_watermarker=False
|
19 |
+
)
|
20 |
+
scheduler_args = {"prediction_type": "v_prediction", "rescale_betas_zero_snr": True}
|
21 |
+
pipe.scheduler = EulerAncestralDiscreteScheduler.from_config(pipe.scheduler.config, timestep_spacing="trailing", **scheduler_args)
|
22 |
+
|
23 |
+
pipe.to('cuda')
|
24 |
+
|
25 |
+
prompt = "1girl, solo, yashio rui, bang dream!, tsukinomori school uniform, very awa, masterpiece, best quality, year 2024, newest, highres, absurdes,"
|
26 |
+
negative_prompt = ""
|
27 |
+
|
28 |
+
image = pipe(
|
29 |
+
prompt,
|
30 |
+
negative_prompt=negative_prompt,
|
31 |
+
width=832,
|
32 |
+
height=1216,
|
33 |
+
guidance_scale=1,
|
34 |
+
num_inference_steps=8
|
35 |
+
).images[0]
|
36 |
+
|
37 |
+
image.save("./yashio_rui.png")
|