chore: update demo runtime, tests, and agent docs
This commit is contained in:
@@ -216,6 +216,15 @@ class SilhouetteWindow:
|
||||
raise ValueError("Window is empty")
|
||||
return int(self._frame_indices[0])
|
||||
|
||||
@property
|
||||
def buffered_silhouettes(self) -> Float[ndarray, "n 64 44"]:
|
||||
if not self._buffer:
|
||||
return np.empty((0, SIL_HEIGHT, SIL_WIDTH), dtype=np.float32)
|
||||
return cast(
|
||||
Float[ndarray, "n 64 44"],
|
||||
np.stack(list(self._buffer), axis=0).astype(np.float32, copy=True),
|
||||
)
|
||||
|
||||
|
||||
def _to_numpy(obj: _ArrayLike) -> ndarray:
|
||||
"""Safely convert array-like object to numpy array.
|
||||
|
||||
Reference in New Issue
Block a user