unilab.tasks.motion_tracking.common.motion_loader.MotionLoader¶
- class unilab.tasks.motion_tracking.common.motion_loader.MotionLoader[source]¶
Bases:
objectLoads and provides access to motion data from NPZ files.
Methods
__init__(motion_file[, body_indices])Initialize motion loader.
clip_end_frames_torch(device)Return immutable clip end frames as a device-resident Torch table.
clip_offsets_torch(device)Return immutable clip start frames as a device-resident Torch table.
get_clip_indices(frame_idx)Map global frame indices to clip indices.
motion_features_torch(device)Return the immutable motion feature table on the requested device.
- motion_features_torch(device)[source]¶
Return the immutable motion feature table on the requested device.
NPZ parsing and validation remain inside this cold-path leaf. Runtime consumers receive one contiguous float32 table with columns packed in the documented motion-feature order rather than mutable NumPy arrays.