For stable release,
pip install pytorchvideo
=======
conda create -n pytorchvideo python=3.7
conda activate pytorchvideo
conda install -c pytorch pytorch=1.8.0 torchvision cudatoolkit=10.2
conda install -c conda-forge -c fvcore -c iopath fvcore=0.1.4 iopath
For nightly builds,
pip install pytorchvideo-nightly
pip install "git+https://github.com/facebookresearch/pytorchvideo.git"
To install using the code of the released version instead of from the main branch, use the following instead.
pip install "git+https://github.com/facebookresearch/pytorchvideo.git@stable"
git clone https://github.com/facebookresearch/pytorchvideo.git
cd pytorchvideo
pip install -e .
# For developing and testing
pip install -e . [test,dev]
- Python 3.7 or 3.8
- PyTorch 1.8.0 or higher.
- torchvision that matches the PyTorch installation. You can install them together as explained at pytorch.org to make sure of this.
- fvcore version 0.1.4 or higher
- ioPath
- If CUDA is to be used, use a version which is supported by the corresponding pytorch version and at least version 10.2 or higher.
We recommend setting up a conda environment with Pytorch and Torchvision before installing PyTorchVideo. For instance, follow the bellow instructions to setup the conda environment,
conda create -n pytorchvideo python=3.7
conda activate pytorchvideo
conda install -c pytorch pytorch=1.8.0 torchvision cudatoolkit=10.2
Please follow the instructions mentioned in test-README to run the provided tests.
We also provide a linting script to correctly format your code edits. Please follow the instructions mentioned in dev-README to run the linter.