Spaces:
Sleeping
Sleeping
Update clip_slider_pipeline.py
Browse files- clip_slider_pipeline.py +1 -1
clip_slider_pipeline.py
CHANGED
@@ -236,7 +236,7 @@ class CLIPSliderXL(CLIPSlider):
|
|
236 |
toks = text_inputs.input_ids
|
237 |
|
238 |
prompt_embeds = text_encoder(
|
239 |
-
toks.to(text_encoder.device),
|
240 |
output_hidden_states=True,
|
241 |
)
|
242 |
|
|
|
236 |
toks = text_inputs.input_ids
|
237 |
|
238 |
prompt_embeds = text_encoder(
|
239 |
+
toks.to(text_encoder.device, torch.float16),
|
240 |
output_hidden_states=True,
|
241 |
)
|
242 |
|