写在前面:
本博客所有环境基于服务器Ubuntu18.05系统,V100显卡
一、环境准备
1、Python
conda create -n your-env-name python=3.8 -y
conda activate your-env-name
2、Pytorch
Slowfast要求torch版本高于1.7,本博客使用torch-1.12.1+cu113的配置,本文不使用pip命令进行下载,使用本地编译的方式,请在下方链接找到所需版本的torch,torchvision,torchaudio,下载完成后传输到服务器上进行安装
https://download.pytorch.org/whl/torch_stable.htmlhttps://download.pytorch.org/whl/torch_stable.html
3、工具包安装
可以根据slowfast中INSTALL.md里的指示进行安装
3.1 numpy
pip install numpy
3.2 PyAV
conda install av -c conda-forge
3.3 ffmpeg
pip install ffmpeg
3.4 moviepy
pip install moviepy
3.5 psutil
pip install psutil
3.6 opencv-python
pip install opencv-python
3.7 tensorboard
pip install tensorboard
3.8 simplejson
pip install simplejson
</