MCPcopy Create free account
hub / github.com/MTLab/MorphMLP / decode

Function decode

slowfast/datasets/decoder.py:305–410  ·  view source on GitHub ↗

Decode the video and perform temporal sampling. Args: container (container): pyav container. sampling_rate (int): frame sampling rate (interval between two sampled frames). num_frames (int): number of frames to sample. clip_idx (int): if clip_idx

(
    container,
    sampling_rate,
    num_frames,
    clip_idx=-1,
    num_clips=10,
    video_meta=None,
    target_fps=30,
    backend="pyav",
    max_spatial_scale=0,
    use_offset=False,
)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 4

pyav_decodeFunction · 0.85
torchvision_decodeFunction · 0.85
get_start_end_idxFunction · 0.85
temporal_samplingFunction · 0.85

Tested by

no test coverage detected