pub fn sample_frame_indices(
total_frames: usize,
num_frames: usize,
) -> Vec<usize>Expand description
Sample num_frames frame indices uniformly from a video with total_frames frames.
Matches the HF reference: torch.arange(0, total, total / num_frames).int()