Added in missing imports causing errors when encoding video.

#37
by heyitsys - opened
Files changed (1) hide show
  1. README.md +1 -0
README.md CHANGED
@@ -1423,6 +1423,7 @@ print(answer)
1423
  <summary> Click to view Python code running MiniCPM-o 2.6 with video input. </summary>
1424
 
1425
  ```python
 
1426
  MAX_NUM_FRAMES=64 # if cuda OOM set a smaller number
1427
  def encode_video(video_path):
1428
  def uniform_sample(l, n):
 
1423
  <summary> Click to view Python code running MiniCPM-o 2.6 with video input. </summary>
1424
 
1425
  ```python
1426
+ from decord import VideoReader, cpu
1427
  MAX_NUM_FRAMES=64 # if cuda OOM set a smaller number
1428
  def encode_video(video_path):
1429
  def uniform_sample(l, n):