File size: 564 Bytes
cfcdd2c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
16de0a5
cfcdd2c
27c13dd
 
cfcdd2c
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
---
license: creativeml-openrail-m
tags:
- pytorch
- diffusers
- Stable-Diffusion-Model
- diffusion-models-class
---

This model is a diffusion model for text to image generation.

## Usage

```python
from diffusers import StableDiffusionPipeline
import torch

pipeline = StableDiffusionPipeline.from_pretrained('MADZaMeR/stable_diffusion', torch_dtype=torch.float16
).to("cuda" if torch.cuda.is_available() else "cpu")
prompt = "a photograph of an astronaut riding a horse"
image = pipeline(prompt, num_inference_steps=50, guidance_scale=7.5).images[0]
image
```