Skip to content

Commit

Permalink
[fix #3283] adding the note to docstring (#3298)
Browse files Browse the repository at this point in the history
* Adding the note to the backend function

* addressing the new master change

Co-authored-by: Francisco Massa <[email protected]>
  • Loading branch information
bjuncek and fmassa authored Jan 27, 2021
1 parent e2db2ed commit 5b663c8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions torchvision/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@ def set_video_backend(backend):
The :mod:`video_reader` package includes a native C++ implementation on
top of FFMPEG libraries, and a python API of TorchScript custom operator.
It is generally decoding faster than :mod:`pyav`, but perhaps is less robust.
.. note::
Building with FFMPEG is disabled by default in the latest master. If you want to use the 'video_reader'
backend, please compile torchvision from source.
"""
global _video_backend
if backend not in ["pyav", "video_reader"]:
Expand Down

0 comments on commit 5b663c8

Please sign in to comment.