Skip to content

Commit 39ed9ac

Browse files
committed
Links to TorchVision.
1 parent 8081298 commit 39ed9ac

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

src/torchcodec/decoders/_video_decoder.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,8 @@ class VideoDecoder:
7070
transforms (sequence of transform objects, optional): Sequence of transforms to be
7171
applied to the decoded frames by the decoder itself, in order. Accepts both
7272
:class:`~torchcodec.transforms.DecoderTransform` and
73-
`torchvision.transforms.v2.Transform` objects. All transforms are applied
73+
`torchvision.transforms.v2.Transform <https://docs.pytorch.org/vision/stable/transforms.html#v2-api-reference-recommended>`_
74+
objects. All transforms are applied
7475
in the ouput pixel format and colorspace. Read more about this parameter in:
7576
TODO_DECODER_TRANSFORMS_TUTORIAL.
7677
custom_frame_mappings (str, bytes, or file-like object, optional):

src/torchcodec/transforms/_decoder_transforms.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,9 @@ class DecoderTransform(ABC):
1919
decoded frames and applying the same kind of transform.
2020
2121
Most `DecoderTransform` objects have a complementary transform in TorchVision,
22-
specificially in :mod:`torchvision.transforms.v2`. For such transforms,
23-
we ensure that:
22+
specificially in
23+
`torchvision.transforms.v2 <https://docs.pytorch.org/vision/stable/transforms.html#v2-api-reference-recommended>`_.
24+
For such transforms, we ensure that:
2425
2526
1. The names are the same.
2627
2. Default behaviors are the same.
@@ -43,7 +44,8 @@ def _make_params(self) -> str:
4344
class Resize(DecoderTransform):
4445
"""Resize the decoded frame to a given size.
4546
46-
Complementary TorchVision transform: :class:`torchvision.transforms.v2.Resize`.
47+
Complementary TorchVision transform:
48+
`torchvision.transforms.v2.Resize <https://docs.pytorch.org/vision/stable/generated/torchvision.transforms.v2.Resize.html#torchvision.transforms.v2.Resize>`_.
4749
Interpolation is always bilinear. Anti-aliasing is always on.
4850
4951
Args:

0 commit comments

Comments
 (0)