MCPcopy Create free account
hub / github.com/InternRobotics/G2VLM / __init__

Method __init__

data/video_utils.py:119–122  ·  view source on GitHub ↗
(self, max_num_frames=-1, min_num_frames=8, sample='rand')

Source from the content-addressed store, hash-verified

117
118class FrameSampler:
119 def __init__(self, max_num_frames=-1, min_num_frames=8, sample='rand'):
120 self.max_num_frames = max_num_frames
121 self.min_num_frames = min_num_frames
122 self.sample = sample
123
124 def __call__(self, file_name):
125 fn = read_frames_folder if file_name.endswith('/') else read_frames_decord

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected