Spaces:
Paused
Paused
Rename LTX-Video/ltx_video/pipelines/pipeline_ltx_video (3).py to LTX-Video/ltx_video/pipelines/pipeline_ltx_video.py
Browse files
LTX-Video/ltx_video/pipelines/{pipeline_ltx_video (3).py → pipeline_ltx_video.py}
RENAMED
|
@@ -45,8 +45,17 @@ from ltx_video.models.autoencoders.vae_encode import (
|
|
| 45 |
)
|
| 46 |
|
| 47 |
|
| 48 |
-
|
|
|
|
|
|
|
|
|
|
| 49 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 50 |
|
| 51 |
ASPECT_RATIO_1024_BIN = {
|
| 52 |
"0.25": [512.0, 2048.0],
|
|
@@ -1462,6 +1471,10 @@ class LTXVideoPipeline(DiffusionPipeline):
|
|
| 1462 |
vae_per_channel_normalize=vae_per_channel_normalize,
|
| 1463 |
).to(dtype=init_latents.dtype)
|
| 1464 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1465 |
# Handle the different conditioning cases
|
| 1466 |
if media_frame_number == 0:
|
| 1467 |
# Get the target spatial position of the latent conditioning item
|
|
|
|
| 45 |
)
|
| 46 |
|
| 47 |
|
| 48 |
+
import warnings
|
| 49 |
+
warnings.filterwarnings("ignore", category=UserWarning)
|
| 50 |
+
warnings.filterwarnings("ignore", category=FutureWarning)
|
| 51 |
+
warnings.filterwarnings("ignore", message=".*")
|
| 52 |
|
| 53 |
+
from huggingface_hub import logging as ll
|
| 54 |
+
|
| 55 |
+
ll.set_verbosity_error()
|
| 56 |
+
ll.set_verbosity_warning()
|
| 57 |
+
ll.set_verbosity_info()
|
| 58 |
+
ll.set_verbosity_debug()
|
| 59 |
|
| 60 |
ASPECT_RATIO_1024_BIN = {
|
| 61 |
"0.25": [512.0, 2048.0],
|
|
|
|
| 1471 |
vae_per_channel_normalize=vae_per_channel_normalize,
|
| 1472 |
).to(dtype=init_latents.dtype)
|
| 1473 |
|
| 1474 |
+
print (f"media_item_latents {media_item_latents.shape}")
|
| 1475 |
+
|
| 1476 |
+
|
| 1477 |
+
|
| 1478 |
# Handle the different conditioning cases
|
| 1479 |
if media_frame_number == 0:
|
| 1480 |
# Get the target spatial position of the latent conditioning item
|