Update README.md
Browse files
README.md
CHANGED
@@ -84,21 +84,22 @@ decoder = StableCascadeDecoderPipeline.from_pretrained("stabilityai/stable-casca
|
|
84 |
prompt = "Anthropomorphic cat dressed as a pilot"
|
85 |
negative_prompt = ""
|
86 |
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
|
|
102 |
```
|
103 |
|
104 |
## Uses
|
|
|
84 |
prompt = "Anthropomorphic cat dressed as a pilot"
|
85 |
negative_prompt = ""
|
86 |
|
87 |
+
with torch.cuda.amp.autocast(dtype=dtype):
|
88 |
+
prior_output = prior(
|
89 |
+
prompt=prompt,
|
90 |
+
height=1024,
|
91 |
+
width=1024,
|
92 |
+
negative_prompt=negative_prompt,
|
93 |
+
guidance_scale=4.0,
|
94 |
+
num_images_per_prompt=num_images_per_prompt,
|
95 |
+
)
|
96 |
+
decoder_output = decoder(
|
97 |
+
image_embeddings=prior_output.image_embeddings,
|
98 |
+
prompt=prompt,
|
99 |
+
negative_prompt=negative_prompt,
|
100 |
+
guidance_scale=0.0,
|
101 |
+
output_type="pil",
|
102 |
+
).images
|
103 |
```
|
104 |
|
105 |
## Uses
|