Automated PR - 2026-02-09

This commit is contained in:
sync-bot
2026-02-09 12:03:47 +00:00
parent 4f410820b1
commit 4dbd99e628
26 changed files with 5568 additions and 444 deletions
@@ -1,3 +1,4 @@
import logging
import math
from collections.abc import Generator, Iterator
from fractions import Fraction
@@ -13,6 +14,8 @@ from tqdm import tqdm
from ltx_pipelines.utils.constants import DEFAULT_IMAGE_CRF
logger = logging.getLogger(__name__)
def resize_aspect_ratio_preserving(image: torch.Tensor, long_side: int) -> torch.Tensor:
"""
@@ -227,6 +230,7 @@ def encode_video(
_write_audio(container, audio_stream, audio, audio_sample_rate)
container.close()
logger.info(f"Video saved to {output_path}")
def decode_audio_from_file(path: str, device: torch.device) -> torch.Tensor | None: