Instructions to use SimianLuo/LCM_Dreamshaper_v7 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use SimianLuo/LCM_Dreamshaper_v7 with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("SimianLuo/LCM_Dreamshaper_v7", 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
Commit ·
4589b3f
1
Parent(s): cda1c7e
Update README.md
Browse files
README.md
CHANGED
|
@@ -61,6 +61,9 @@ num_inference_steps = 4
|
|
| 61 |
images = pipe(prompt=prompt, num_inference_steps=num_inference_steps, guidance_scale=8.0, lcm_origin_steps=50, output_type="pil").images
|
| 62 |
```
|
| 63 |
|
|
|
|
|
|
|
|
|
|
| 64 |
## Usage (Deprecated)
|
| 65 |
|
| 66 |
1. Install the library:
|
|
|
|
| 61 |
images = pipe(prompt=prompt, num_inference_steps=num_inference_steps, guidance_scale=8.0, lcm_origin_steps=50, output_type="pil").images
|
| 62 |
```
|
| 63 |
|
| 64 |
+
For more information, please have a look at the official docs:
|
| 65 |
+
👉 https://huggingface.co/docs/diffusers/api/pipelines/latent_consistency_models#latent-consistency-models
|
| 66 |
+
|
| 67 |
## Usage (Deprecated)
|
| 68 |
|
| 69 |
1. Install the library:
|