Update LTX-Video/ltx_video/pipelines/pipeline_ltx_video.py
Browse files
LTX-Video/ltx_video/pipelines/pipeline_ltx_video.py
CHANGED
|
@@ -489,9 +489,10 @@ class LTXVideoPipeline(DiffusionPipeline):
|
|
| 489 |
batch_size = prompt_embeds.shape[0]
|
| 490 |
|
| 491 |
# See Section 3.1. of the paper.
|
| 492 |
-
max_length =
|
| 493 |
-
|
| 494 |
-
|
|
|
|
| 495 |
if prompt_embeds is None:
|
| 496 |
assert (
|
| 497 |
self.text_encoder is not None
|
|
|
|
| 489 |
batch_size = prompt_embeds.shape[0]
|
| 490 |
|
| 491 |
# See Section 3.1. of the paper.
|
| 492 |
+
max_length = 256
|
| 493 |
+
#(
|
| 494 |
+
# text_encoder_max_tokens # TPU supports only lengths multiple of 128
|
| 495 |
+
#)
|
| 496 |
if prompt_embeds is None:
|
| 497 |
assert (
|
| 498 |
self.text_encoder is not None
|