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

Method sample

flowmap/frame_sampler/frame_sampler.py:24–29  ·  view source on GitHub ↗
(
        self,
        num_frames_in_video: int,
        device: torch.device,
    )

Source from the content-addressed store, hash-verified

22
23 @abstractmethod
24 def sample(
25 self,
26 num_frames_in_video: int,
27 device: torch.device,
28 ) -> Int64[Tensor, " frame"]: # frame indices
29 pass

Callers 5

__getitem__Method · 0.45
__getitem__Method · 0.45
__iter__Method · 0.45
__getitem__Method · 0.45
__getitem__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected