From "self" argument from load_video
#4
by
narai
- opened
README.md
CHANGED
@@ -171,7 +171,7 @@ import warnings
|
|
171 |
from decord import VideoReader, cpu
|
172 |
import numpy as np
|
173 |
warnings.filterwarnings("ignore")
|
174 |
-
def load_video(
|
175 |
if max_frames_num == 0:
|
176 |
return np.zeros((1, 336, 336, 3))
|
177 |
vr = VideoReader(video_path, ctx=cpu(0),num_threads=1)
|
|
|
171 |
from decord import VideoReader, cpu
|
172 |
import numpy as np
|
173 |
warnings.filterwarnings("ignore")
|
174 |
+
def load_video(video_path, max_frames_num,fps=1,force_sample=False):
|
175 |
if max_frames_num == 0:
|
176 |
return np.zeros((1, 336, 336, 3))
|
177 |
vr = VideoReader(video_path, ctx=cpu(0),num_threads=1)
|