Function
get_cache_key
(
dataset: str,
scene: str,
indices: Int64[Tensor, " frame"],
min_num_tracks: int,
max_track_interval: int,
)
Source from the content-addressed store, hash-verified
| 29 | |
| 30 | |
| 31 | def get_cache_key( |
| 32 | dataset: str, |
| 33 | scene: str, |
| 34 | indices: Int64[Tensor, " frame"], |
| 35 | min_num_tracks: int, |
| 36 | max_track_interval: int, |
| 37 | ) -> tuple[str, str, int, int, int, int]: |
| 38 | first, *_, last = indices |
| 39 | return ( |
| 40 | dataset, |
| 41 | scene, |
| 42 | first.item(), |
| 43 | last.item(), |
| 44 | min_num_tracks, |
| 45 | max_track_interval, |
| 46 | ) |
| 47 | |
| 48 | |
| 49 | def generate_video_tracks( |
Tested by
no test coverage detected