Skip to content

Commit 039c928

Browse files
fmassabjuncek
andauthored
Minor improvements to VideoReader (#2781)
* Minor improvements to VideoReader * update jupyter notebook with new naming Co-authored-by: Bruno Korbar <[email protected]>
1 parent 610c9d2 commit 039c928

File tree

4 files changed

+200
-151
lines changed

4 files changed

+200
-151
lines changed

docs/source/io.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ In addition to the :mod:`read_video` function, we provide a high-performance
2424
lower-level API for more fine-grained control compared to the :mod:`read_video` function.
2525
It does all this whilst fully supporting torchscript.
2626

27-
.. autoclass:: Video
27+
.. autoclass:: VideoReader
2828
:members: next, get_metadata, set_current_stream, seek
2929

3030

@@ -37,7 +37,7 @@ Example of usage:
3737
# Constructor allocates memory and a threaded decoder
3838
# instance per video. At the momet it takes two arguments:
3939
# path to the video file, and a wanted stream.
40-
reader = torchvision.io.Video(video_path, "video")
40+
reader = torchvision.io.VideoReader(video_path, "video")
4141
4242
# The information about the video can be retrieved using the
4343
# `get_metadata()` method. It returns a dictionary for every stream, with

0 commit comments

Comments
 (0)