Text-to-Image
Diffusers
Safetensors
English
StableDiffusionPipeline
stable-diffusion
stable-diffusion-diffusers
art
artistic
anime
dreamshaper
lcm
Instructions to use Lykon/dreamshaper-8-lcm with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use Lykon/dreamshaper-8-lcm with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("Lykon/dreamshaper-8-lcm", 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
|
@@ -46,7 +46,7 @@ pipe = pipe.to("cuda")
|
|
| 46 |
prompt = "portrait photo of muscular bearded guy in a worn mech suit, light bokeh, intricate, steel metal, elegant, sharp focus, soft lighting, vibrant colors"
|
| 47 |
|
| 48 |
generator = torch.manual_seed(0)
|
| 49 |
-
image = pipe(prompt, num_inference_steps=15, generator=generator).images[0]
|
| 50 |
image.save("./image.png")
|
| 51 |
```
|
| 52 |
|
|
|
|
| 46 |
prompt = "portrait photo of muscular bearded guy in a worn mech suit, light bokeh, intricate, steel metal, elegant, sharp focus, soft lighting, vibrant colors"
|
| 47 |
|
| 48 |
generator = torch.manual_seed(0)
|
| 49 |
+
image = pipe(prompt, num_inference_steps=15, guidance_scale=2, generator=generator).images[0]
|
| 50 |
image.save("./image.png")
|
| 51 |
```
|
| 52 |
|