Spaces:
Running
Running
use 16
Browse files
app.py
CHANGED
@@ -56,7 +56,7 @@ def get_index(num_frames, num_segments=8):
|
|
56 |
def load_video(video_path):
|
57 |
vr = VideoReader(video_path, ctx=cpu(0))
|
58 |
num_frames = len(vr)
|
59 |
-
frame_indices = get_index(num_frames,
|
60 |
|
61 |
# transform
|
62 |
crop_size = 160
|
|
|
56 |
def load_video(video_path):
|
57 |
vr = VideoReader(video_path, ctx=cpu(0))
|
58 |
num_frames = len(vr)
|
59 |
+
frame_indices = get_index(num_frames, 16)
|
60 |
|
61 |
# transform
|
62 |
crop_size = 160
|