recoilme commited on
Commit
137207a
·
1 Parent(s): a578418
Files changed (1) hide show
  1. pipeline_sdxs.py +1 -0
pipeline_sdxs.py CHANGED
@@ -46,6 +46,7 @@ class SdxsPipeline(DiffusionPipeline):
46
  return_tensors="pt",
47
  padding="max_length",
48
  truncation=True,
 
49
  max_length=max_length
50
  ).to(device)
51
  outs = self.text_encoder(**toks, output_hidden_states=True)
 
46
  return_tensors="pt",
47
  padding="max_length",
48
  truncation=True,
49
+ padding_side = 'left',
50
  max_length=max_length
51
  ).to(device)
52
  outs = self.text_encoder(**toks, output_hidden_states=True)