MCPcopy
hub / github.com/OpenMotionLab/MotionGPT / subsample

Function subsample

mGPT/utils/temos_utils.py:104–108  ·  view source on GitHub ↗
(num_frames, last_framerate, new_framerate)

Source from the content-addressed store, hash-verified

102
103# TODO: use a real subsampler..
104def subsample(num_frames, last_framerate, new_framerate):
105 step = int(last_framerate / new_framerate)
106 assert step >= 1
107 frames = np.arange(0, num_frames, step)
108 return frames
109
110
111# TODO: use a real upsampler..

Callers 2

fit.pyFile · 0.90
temos_utils.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected