README.rst 940 B

123456789101112131415161718192021
  1. GPU Decoder
  2. ===========
  3. GPU decoder depends on ffmpeg for demuxing, uses NVDECODE APIs from the nvidia-video-codec sdk and uses cuda for processing on gpu. In order to use this, please follow the following steps:
  4. * Download the latest `nvidia-video-codec-sdk <https://developer.nvidia.com/nvidia-video-codec-sdk/download>`_
  5. * Extract the zipped file.
  6. * Set TORCHVISION_INCLUDE environment variable to the location of the video codec headers(`nvcuvid.h` and `cuviddec.h`), which would be under `Interface` directory.
  7. * Set TORCHVISION_LIBRARY environment variable to the location of the video codec library(`libnvcuvid.so`), which would be under `Lib/linux/stubs/x86_64` directory.
  8. * Install the latest ffmpeg from `conda-forge` channel.
  9. .. code:: bash
  10. conda install -c conda-forge ffmpeg
  11. * Set CUDA_HOME environment variable to the cuda root directory.
  12. * Build torchvision from source:
  13. .. code:: bash
  14. python setup.py install