Text Generation
Transformers
Safetensors
English
llava
multimodal
conversational
Eval Results
Inference Endpoints

From "self" argument from load_video

#4
Files changed (1) hide show
  1. README.md +1 -1
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(self, 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)
 
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)