Text-to-Image
Diffusers
Safetensors
PyTorch
StableDiffusionPipeline
Stable-Diffusion-Model
diffusion-models-class
Instructions to use MADZaMeR/stable_diffusion with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use MADZaMeR/stable_diffusion with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("MADZaMeR/stable_diffusion", 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
- Draw Things
- DiffusionBee
Update README.md
Browse files
README.md
CHANGED
|
@@ -13,6 +13,7 @@ This model is a diffusion model for text to image generation.
|
|
| 13 |
|
| 14 |
```python
|
| 15 |
from diffusers import StableDiffusionPipeline
|
|
|
|
| 16 |
|
| 17 |
pipeline = StableDiffusionPipeline.from_pretrained('MADZaMeR/stable_diffusion', torch_dtype=torch.float16
|
| 18 |
).to("cuda" if torch.cuda.is_available() else "cpu")
|
|
|
|
| 13 |
|
| 14 |
```python
|
| 15 |
from diffusers import StableDiffusionPipeline
|
| 16 |
+
import torch
|
| 17 |
|
| 18 |
pipeline = StableDiffusionPipeline.from_pretrained('MADZaMeR/stable_diffusion', torch_dtype=torch.float16
|
| 19 |
).to("cuda" if torch.cuda.is_available() else "cpu")
|