Update README.md
Browse files
README.md
CHANGED
@@ -4,13 +4,13 @@ tags:
|
|
4 |
- stable-diffusion
|
5 |
---
|
6 |
|
7 |
-
[ACertainty](https://huggingface.co/JosephusCheung/ACertainty)をLatent Consistency Modelの手法で蒸留して4~8ステップほどで生成できるようにしました。性能はまだまだという感じです。
|
8 |
|
9 |
```py
|
10 |
from diffusers import DiffusionPipeline
|
11 |
import torch
|
12 |
|
13 |
-
pipe = DiffusionPipeline.from_pretrained("furusu/LCM-
|
14 |
pipe.to(torch_device="cuda", torch_dtype=torch.float16)
|
15 |
|
16 |
prompt = "anime, masterpiece, best quality, 1girl, solo, blush, sitting, twintails, blonde hair, bowtie, school uniforme, nature"
|
|
|
4 |
- stable-diffusion
|
5 |
---
|
6 |
|
7 |
+
[ACertainty](https://huggingface.co/JosephusCheung/ACertainty)を[Latent Consistency Model](https://latent-consistency-models.github.io/)の手法で蒸留して4~8ステップほどで生成できるようにしました。性能はまだまだという感じです。
|
8 |
|
9 |
```py
|
10 |
from diffusers import DiffusionPipeline
|
11 |
import torch
|
12 |
|
13 |
+
pipe = DiffusionPipeline.from_pretrained("furusu/LCM-Acertainty", custom_pipeline="latent_consistency_txt2img", custom_revision="main")
|
14 |
pipe.to(torch_device="cuda", torch_dtype=torch.float16)
|
15 |
|
16 |
prompt = "anime, masterpiece, best quality, 1girl, solo, blush, sitting, twintails, blonde hair, bowtie, school uniforme, nature"
|