dome272 commited on
Commit
621fc2d
1 Parent(s): a7059fb

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +16 -15
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
- prior_output = prior_pipeline(
88
- prompt=caption,
89
- height=1024,
90
- width=1024,
91
- negative_prompt=negative_prompt,
92
- guidance_scale=4.0,
93
- num_images_per_prompt=num_images_per_prompt,
94
- )
95
- decoder_output = decoder_pipeline(
96
- image_embeddings=prior_output.image_embeddings,
97
- prompt=caption,
98
- negative_prompt=negative_prompt,
99
- guidance_scale=0.0,
100
- output_type="pil",
101
- ).images
 
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