Browse Source
update
Signed-off-by: junjie.jiang <junjie.jiang@zilliz.com>
main
1 changed files with
0 additions and
1 deletions
-
video_decoder.py
|
@ -64,7 +64,6 @@ class VideoDecoder(PyOperator): |
|
|
yield from self._cpu_time_step_decode(video_path, time_step) |
|
|
yield from self._cpu_time_step_decode(video_path, time_step) |
|
|
|
|
|
|
|
|
def _uniform_temporal_subsample(self, frames, num_samples, total_frames): |
|
|
def _uniform_temporal_subsample(self, frames, num_samples, total_frames): |
|
|
print(num_samples, total_frames) |
|
|
|
|
|
indexs = np.linspace(0, total_frames - 1, num_samples).astype('int') |
|
|
indexs = np.linspace(0, total_frames - 1, num_samples).astype('int') |
|
|
cur_index = 0 |
|
|
cur_index = 0 |
|
|
count = 0 |
|
|
count = 0 |
|
|