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

Function torchvision_decode

slowfast/datasets/decoder.py:114–226  ·  view source on GitHub ↗

If video_meta is not empty, perform temporal selective decoding to sample a clip from the video with TorchVision decoder. If video_meta is empty, decode the entire video and update the video_meta. Args: video_handle (bytes): raw bytes of the video file. sampling_rate

(
    video_handle,
    sampling_rate,
    num_frames,
    clip_idx,
    video_meta,
    num_clips=10,
    target_fps=30,
    modalities=("visual",),
    max_spatial_scale=0,
    use_offset=False,
)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

decodeFunction · 0.85

Calls 1

get_start_end_idxFunction · 0.85

Tested by

no test coverage detected