Skip to content

Commit

Permalink
Address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolasHug committed Feb 5, 2025
1 parent c12ef95 commit 7dddcd1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions examples/approximate_mode.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,10 @@ def bench(f, average_over=50, warmup=2, **f_kwargs):
#
# Strictly speaking the ``seek_mode`` parameter only affects the performance of
# the :class:`~torchcodec.decoders.VideoDecoder` creation. It does not have a
# direct effect on frame decoding or sampling. **However**, because frame
# decoding and sampling patterns typically involve the creation of the
# :class:`~torchcodec.decoders.VideoDecoder` (one per video), ``seek_mode`` may
# very well end up affecting the performance of decoding and samplers. For
# direct effect on the performance of frame decoding or sampling. **However**,
# because frame decoding and sampling patterns typically involve the creation of
# the :class:`~torchcodec.decoders.VideoDecoder` (one per video), ``seek_mode``
# may very well end up affecting the performance of decoding and samplers. For
# example:

from torchcodec import samplers
Expand Down Expand Up @@ -163,7 +163,7 @@ def sample_clips(seek_mode):
# ----------------------------------
#
# With ``seek_mode="exact"``, the :class:`~torchcodec.decoders.VideoDecoder`
# performs a :term:`scan` when it is instanciated. The scan doesn't involve
# performs a :term:`scan` when it is instantiated. The scan doesn't involve
# decoding, but processes an entire file to infer more accurate metadata (like
# duration), and also builds an internal index of frames and key-frames. This
# internal index is potentially more accurate than the one in the file's
Expand Down

0 comments on commit 7dddcd1

Please sign in to comment.