IbrahimHasani commited on
Commit
0c7948b
1 Parent(s): 1bc2256

Update requirements.txt

Browse files
Files changed (1) hide show
  1. requirements.txt +14 -1
requirements.txt CHANGED
@@ -1,4 +1,17 @@
1
- gradio
 
 
 
 
 
 
 
 
 
 
 
 
 
2
  opencv-python-headless
3
  --extra-index-url https://download.pytorch.org/whl/cu113
4
  torch
 
1
+ # official PPA comes with ffmpeg 2.8, which lacks tons of features, we use ffmpeg 4.0 here
2
+ sudo add-apt-repository ppa:jonathonf/ffmpeg-4 # for ubuntu20.04 official PPA is already version 4.2, you may skip this step
3
+ sudo apt-get update
4
+ sudo apt-get install -y build-essential python3-dev python3-setuptools make cmake
5
+ sudo apt-get install -y ffmpeg libavcodec-dev libavfilter-dev libavformat-dev libavutil-dev
6
+ # note: make sure you have cmake 3.8 or later, you can install from cmake official website if it's too old
7
+ git clone --recursive https://github.com/dmlc/decord
8
+ cd decord
9
+ mkdir build && cd build
10
+ cmake .. -DUSE_CUDA=0 -DCMAKE_BUILD_TYPE=Release
11
+ make
12
+ cmake .. -DUSE_CUDA=ON -DCMAKE_BUILD_TYPE=Release
13
+
14
+
15
  opencv-python-headless
16
  --extra-index-url https://download.pytorch.org/whl/cu113
17
  torch