MCPcopy Create free account
hub / github.com/dcharatan/flowmap / get_cache_key

Function get_cache_key

flowmap/tracking/__init__.py:31–46  ·  view source on GitHub ↗
(
    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
31def 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
49def generate_video_tracks(

Callers 1

compute_tracksFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected