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

Method __call__

data/video_utils.py:124–127  ·  view source on GitHub ↗
(self, file_name)

Source from the content-addressed store, hash-verified

122 self.sample = sample
123
124 def __call__(self, file_name):
125 fn = read_frames_folder if file_name.endswith('/') else read_frames_decord
126 frames = fn(file_name, num_frames=self.max_num_frames, min_num_frames=self.min_num_frames, sample=self.sample)
127 return frames
128
129
130def decode_video_byte(video_bytes):

Callers

nothing calls this directly

Calls 1

fnFunction · 0.85

Tested by

no test coverage detected