Instructions to use furusu/LCM-Acertainty with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use furusu/LCM-Acertainty with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("furusu/LCM-Acertainty", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
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"
|