Refactor README and streaming_turn_model.py to clarify fixed-grid frame ownership and update documentation. Remove merge conflict markers and enhance explanations regarding session launching conditions and audio slicing behavior.

This commit is contained in:
Xin Wang
2026-08-17 22:59:02 +08:00
parent a6dea1529a
commit d815b59def
2 changed files with 0 additions and 16 deletions

View File

@@ -243,7 +243,6 @@ class FixedGridAV:
raise RuntimeError(f"Decoded audio is empty: {self.path}")
def frames(self, start: float, end: float) -> list[Any]:
<<<<<<< HEAD
"""Return fixed-grid frames whose timestamps lie in ``[start, end)``.
Half-open ownership is essential at native block boundaries. For
@@ -251,23 +250,14 @@ class FixedGridAV:
not also be committed in ``[0.0, 2.0)``. Audio slicing below follows
the same convention.
"""
=======
"""Return fixed-grid frames whose timestamps lie in [start, end)."""
>>>>>>> 8145be410866dd0675038d92347aea34d24b84d5
import numpy as np
from PIL import Image
first = max(0, int(math.ceil(start * self.fps - 1e-7)))
<<<<<<< HEAD
last = min(
self.num_frames - 1,
int(math.ceil(end * self.fps - 1e-7)) - 1,
=======
last_exclusive = min(
self.num_frames,
int(math.ceil(end * self.fps - 1e-7)),
>>>>>>> 8145be410866dd0675038d92347aea34d24b84d5
)
last = last_exclusive - 1
if first > last: