File size: 1,115 Bytes
c61022b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
---
license: other
license_name: fair-ai-public-license-1.0-sd
license_link: https://freedevproject.org/faipl-1.0-sd/
---

SDXL Hyper version of Comradeship XL v14V. 

Available in 6~15 steps / CFG 1.0 settings. Using the recommended settings, you can create images quickly.

```python
import torch
from diffusers import StableDiffusionXLPipeline, EulerAncestralDiscreteScheduler

pipe = StableDiffusionXLPipeline.from_pretrained(
    "hanzogak/comradeshipXL-v14VT",
    use_safetensors=True,
    add_watermarker=False
)
scheduler_args = {"prediction_type": "v_prediction", "rescale_betas_zero_snr": True}
pipe.scheduler = EulerAncestralDiscreteScheduler.from_config(pipe.scheduler.config, timestep_spacing="trailing", **scheduler_args)

pipe.to('cuda')

prompt = "1girl, solo, yashio rui, bang dream!, tsukinomori school uniform, very awa, masterpiece, best quality, year 2024, newest, highres, absurdes,"
negative_prompt = ""

image = pipe(
    prompt,
    negative_prompt=negative_prompt,
    width=832,
    height=1216,
    guidance_scale=1,
    num_inference_steps=8
).images[0]

image.save("./yashio_rui.png")