Update README.md
Browse files
README.md
CHANGED
@@ -1,11 +1,31 @@
|
|
1 |
---
|
2 |
license: creativeml-openrail-m
|
3 |
---
|
|
|
4 |
This is a Diffusers-compatible version of [Yiffymix v51 by chilon249](https://civitai.com/models/3671?modelVersionId=658237).
|
5 |
See the original page for more information.
|
6 |
|
7 |
Keep in mind that this is SDXL-Lightning based model,
|
8 |
so using fewer steps (around 12 to 25) and low guidance
|
9 |
scale (around 4 to 6) is recommended for the best result.
|
|
|
10 |
|
11 |
-
This repo uses DPM++ 2M Karras as its sampler (Diffusers only).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
---
|
2 |
license: creativeml-openrail-m
|
3 |
---
|
4 |
+
# Overview
|
5 |
This is a Diffusers-compatible version of [Yiffymix v51 by chilon249](https://civitai.com/models/3671?modelVersionId=658237).
|
6 |
See the original page for more information.
|
7 |
|
8 |
Keep in mind that this is SDXL-Lightning based model,
|
9 |
so using fewer steps (around 12 to 25) and low guidance
|
10 |
scale (around 4 to 6) is recommended for the best result.
|
11 |
+
It's also recommended to use clip skip of 2.
|
12 |
|
13 |
+
This repo uses DPM++ 2M Karras as its sampler (Diffusers only).
|
14 |
+
|
15 |
+
## Diffusers Installation
|
16 |
+
```py
|
17 |
+
from diffusers import StableDiffusionXLPipeline
|
18 |
+
import torch
|
19 |
+
|
20 |
+
model = "IDK-ab0ut/Yiffymix_v51"
|
21 |
+
pipeline = StableDiffusionXLPipeline.from_pretrained(model, torch_dtype=torch.float16).to("cuda")
|
22 |
+
|
23 |
+
prompt = "a cat, detailed background, dynamic lighting"
|
24 |
+
negative_prompt = "low resolution, bad quality, deformed"
|
25 |
+
steps = 25
|
26 |
+
guidance_scale = 4
|
27 |
+
image = pipeline(prompt=prompt, negative_prompt=negative_prompt,
|
28 |
+
num_inference_steps=steps, guidance_scale=guidance_scale,
|
29 |
+
clip_skip=2).images[0]
|
30 |
+
image
|
31 |
+
```
|