AlanB commited on
Commit
4f94e1e
·
1 Parent(s): 5db5932

Fixed typo of truncation

Browse files
Files changed (1) hide show
  1. pipeline.py +1 -1
pipeline.py CHANGED
@@ -253,7 +253,7 @@ class ImagicStableDiffusionPipeline(DiffusionPipeline):
253
  prompt,
254
  padding="max_length",
255
  max_length=self.tokenizer.model_max_length,
256
- truncaton=True,
257
  return_tensors="pt",
258
  )
259
  text_embeddings = torch.nn.Parameter(
 
253
  prompt,
254
  padding="max_length",
255
  max_length=self.tokenizer.model_max_length,
256
+ truncation=True,
257
  return_tensors="pt",
258
  )
259
  text_embeddings = torch.nn.Parameter(