参考链接1: link
参考链接2: link
1.进入home目录,安装 mmcv-full
cd /home
pip install mmcv-full -f https://download.openmmlab.com/mmcv/dist/cu111/torch1.8.0/index.html
2.安装ffmpeg (4.2 版本最佳)
conda install x264=='1!152.20180717' ffmpeg=4.0.2 -c conda-forge
3.安装GCC 5+
add-apt-repository ppa:jonathonf/gcc-7.1
apt-get update
apt-get install gcc-7 g++-7
update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-7 60 --slave /usr/bin/g++ g++ /usr/bin/g++-7
4.安装mmpycocotools
pip install mmpycocotools
5.安装moviepy
pip install moviepy opencv-python terminaltables seaborn decord -i https://pypi.douban.com/simple
6.克隆 MMAction2 库,再进入mmaction2目录
git clone https://github.com/open-mmlab/mmaction2.git
cd mmaction2
7.安装依赖包和 MMAction2
pip install -r requirements/build.txt
python setup.py develop # or "pip install -v -e ."