Skip to content

Commit 3d95977

Browse files
committed
.
1 parent f0444d4 commit 3d95977

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

examples/basic_cuda_example.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,30 +21,30 @@
2121
CUDA Decoding can offer speed-up over CPU Decoding in a few scenarios:
2222
2323
#. You are decoding a large resolution video
24-
#. You are decoding a large batch of videos that's saturting the CPU
24+
#. You are decoding a large batch of videos that's saturating the CPU
2525
#. You want to do whole-image transforms like scaling or convolutions on the decoded tensors
2626
after decoding
2727
#. Your CPU is saturated and you want to free it up for other work
2828
29-
In some scenarios CUDA Decoding can be slower than CPU Decoding, example:
29+
Here are situations where CUDA Decoding may not make sense:
3030
31-
#. If your GPU is already busy and CPU is not
32-
#. If you have small resolution videos and the PCI-e transfer latency is large
3331
#. You want bit-exact results compared to CPU Decoding
32+
#. If you have small resolution videos and the PCI-e transfer latency is large
33+
#. If your GPU is already busy and CPU is not
3434
3535
It's best to experiment with CUDA Decoding to see if it improves your use-case. With
36-
TorchCodec you can simply pass in a device parameter to the VideoDecoder class to
37-
use CUDA Decoding.
36+
TorchCodec you can simply pass in a device parameter to the
37+
:class:`~torchcodec.decoders.VideoDecoder` class to use CUDA Decoding.
3838
3939
In order use CUDA Decoding will need the following installed in your environment:
4040
4141
#. CUDA-enabled pytorch
42-
#. FFMPEG binaries that support NVDEC-enabled codecs
42+
#. FFmpeg binaries that support NVDEC-enabled codecs
4343
#. libnpp and nvrtc (these are usually installed when you install the full cuda-toolkit)
4444
4545
46-
FFMPEG versions 5, 6 and 7 from conda-forge are built with NVDEC support and
47-
you can install them by running (for example to install ffmpeg version 7):
46+
FFmpeg versions 5, 6 and 7 from conda-forge are built with NVDEC support and you can
47+
install them with conda. For example, to install FFmpeg version 7:
4848
4949
.. code-block:: bash
5050

0 commit comments

Comments
 (0)