Update README.md
Browse files
README.md
CHANGED
|
@@ -19,17 +19,18 @@ license: mit
|
|
| 19 |
|
| 20 |
## Model description
|
| 21 |
|
| 22 |
-
|
| 23 |
|
| 24 |
-
|
| 25 |
-
pipe.load_lora_weights("TristanJLegg/MinecraftStyleStableDiffusion")
|
| 26 |
|
| 27 |
-
pipe
|
|
|
|
| 28 |
|
| 29 |
-
prompt
|
|
|
|
|
|
|
| 30 |
|
| 31 |
-
|
| 32 |
-
img.save(f"minecraft_style_stable_diffusion.png")
|
| 33 |
|
| 34 |
## Download model
|
| 35 |
|
|
|
|
| 19 |
|
| 20 |
## Model description
|
| 21 |
|
| 22 |
+
```python
|
| 23 |
|
| 24 |
+
from diffusers import DiffusionPipeline
|
|
|
|
| 25 |
|
| 26 |
+
pipe = DiffusionPipeline.from_pretrained("runwayml/stable-diffusion-v1-5")
|
| 27 |
+
pipe.load_lora_weights("TristanJLegg/MinecraftStyleStableDiffusion")
|
| 28 |
|
| 29 |
+
prompt = "a cabin in the woods"
|
| 30 |
+
img = pipe(prompt).images[0]
|
| 31 |
+
img.save(f"minecraft_style_stable_diffusion.png")
|
| 32 |
|
| 33 |
+
```
|
|
|
|
| 34 |
|
| 35 |
## Download model
|
| 36 |
|