|
--- |
|
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") |