Upload README.md with huggingface_hub
Browse files
README.md
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: creativeml-openrail-m
|
3 |
+
tags:
|
4 |
+
- pytorch
|
5 |
+
- diffusers
|
6 |
+
- Stable-Diffusion-Model
|
7 |
+
- diffusion-models-class
|
8 |
+
---
|
9 |
+
|
10 |
+
This model is a diffusion model for text to image generation.
|
11 |
+
|
12 |
+
## Usage
|
13 |
+
|
14 |
+
```python
|
15 |
+
from diffusers import StableDiffusionPipeline
|
16 |
+
|
17 |
+
pipeline = StableDiffusionPipeline.from_pretrained('MADZaMeR/stable_diffusion')
|
18 |
+
prompt = "a photograph of an astronaut riding a horse"
|
19 |
+
image = pipeline(prompt, num_inference_steps=50, guidance_scale=7.5).images[0]
|
20 |
+
image
|
21 |
+
```
|