linoyts HF staff commited on
Commit
a0503f3
1 Parent(s): 2f67a39

Update clip_slider_pipeline.py

Browse files
Files changed (1) hide show
  1. 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