TX1安装SlowFast

官网安装手册

Requirements

Python >= 3.6
Numpy
PyTorch 1.3
fvcore: pip install 'git+https://github.com/facebookresearch/fvcore'
torchvision that matches the PyTorch installation. You can install them together at pytorch.org to make sure of this.
simplejson: pip install simplejson
GCC >= 4.9
PyAV: conda install av -c conda-forge
ffmpeg (4.0 is prefereed, will be installed along with PyAV)
PyYaml: (will be installed along with fvcore)
tqdm: (will be installed along with fvcore)
psutil: pip install psutil
OpenCV: pip install opencv-python
torchvision: pip install torchvision or conda install torchvision -c pytorch
tensorboard: pip install tensorboard
moviepy: (optional, for visualizing video on tensorboard) conda install -c conda-forge moviepy or pip install moviepy
#安装过Detercron2就不需要了
Detectron2:
    pip install -U torch torchvision cython
    pip install -U 'git+https://github.com/facebookresearch/fvcore.git' 'git+https://github.com/cocodataset/cocoapi.git#subdirectory=PythonAPI'
    git clone https://github.com/facebookresearch/detectron2 detectron2_repo
    pip install -e detectron2_repo
    # You can find more details at https://github.com/facebookresearch/detectron2/blob/master/INSTALL.md

Pytorch

#Please follow PyTorch official instructions to install from source:
git clone --recursive https://github.com/pytorch/pytorch

PySlowFast

#Clone the PySlowFast Video Understanding repository.
git clone https://github.com/facebookresearch/slowfast
#Add this repository to $PYTHONPATH.
#添加到当地的工程中方便改源码
export PYTHONPATH=/path/to/SlowFast/slowfast:$PYTHONPATH

Build PySlowFast

cd SlowFast
python setup.py build develop

在Jetson Nano (TX1/TX2)上使用Anaconda与PyTorch 1.1.0
其中由于TX1不能安装Anaconda,因此安装PyAV的时候需要pip install av,取自PyAV官方文档,
不过一直出错,具体可参考这个
Error while installing av 7.0.0 using pip
最后pip install av==6.2.0安装成功,具体原因我也不知道,起初尝试这个命令也失败了,很迷…不过环境顺利的安装下去了

你可能感兴趣的:(Ubuntu各种环境的坑)