Staticaliza commited on
Commit
f4f7208
·
verified ·
1 Parent(s): ef14932

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -56,7 +56,7 @@ def uniform_sample(seq, n):
56
  step = max(len(seq) // n, 1)
57
  return seq[::step][:n]
58
 
59
- def build_video_omni(path):
60
  vr = VideoReader(path, ctx = cpu(0))
61
  idx = uniform_sample(range(len(vr)), MAX_FRAMES)
62
  batch = vr.get_batch(idx).asnumpy()
 
56
  step = max(len(seq) // n, 1)
57
  return seq[::step][:n]
58
 
59
+ def build_video(path):
60
  vr = VideoReader(path, ctx = cpu(0))
61
  idx = uniform_sample(range(len(vr)), MAX_FRAMES)
62
  batch = vr.get_batch(idx).asnumpy()