Fixed typo of truncation
Browse files- 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 |
-
|
| 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(
|