patrickvonplaten
commited on
Commit
•
585a602
1
Parent(s):
3fd0370
Update README.md
Browse files
README.md
CHANGED
@@ -5,4 +5,22 @@ prior:
|
|
5 |
tags:
|
6 |
- text-to-image
|
7 |
- wuerstchen
|
8 |
-
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
tags:
|
6 |
- text-to-image
|
7 |
- wuerstchen
|
8 |
+
---
|
9 |
+
|
10 |
+
# How-to-use
|
11 |
+
|
12 |
+
```py
|
13 |
+
import torch
|
14 |
+
from diffusers import AutoPipelineForText2Image
|
15 |
+
|
16 |
+
pipe = AutoPipelineForText2Image.from_pretrained("warp-diffusion/wuerstchen", torch_dtype=torch.float16).to("cuda")
|
17 |
+
|
18 |
+
prompt = [
|
19 |
+
"An old destroyed car standing on a cliff in norway, cinematic photography",
|
20 |
+
"Western movie, closeup cinematic photography",
|
21 |
+
"Pink nike shoe commercial, closeup cinematic photography",
|
22 |
+
"Croatia, closeup cinematic photography",
|
23 |
+
"South Tyrol mountains at sunset, closeup cinematic photography",
|
24 |
+
]
|
25 |
+
images = pipe(prompt, guidance_scale=8.0, width=1024, height=1024).images
|
26 |
+
```
|