@@ -5,6 +5,22 @@ Transforming and augmenting images
55
66.. currentmodule :: torchvision.transforms
77
8+
9+ .. note ::
10+ In 0.15, we released a new set of transforms available in the
11+ ``torchvision.transforms.v2 `` namespace, which add support for transforming
12+ not just images but also bounding boxes, masks, or videos. These transforms
13+ are fully backward compatible with the current ones, and you'll see them
14+ documented below with a `v2. ` prefix. To get started with those new
15+ transforms, you can check out
16+ :ref: `sphx_glr_auto_examples_plot_transforms_v2_e2e.py `.
17+ Note that these transforms are still BETA, and while we don't expect major
18+ breaking changes in the future, some APIs may still change according to user
19+ feedback. Please submit any feedback you may have in
20+ https://github.com/pytorch/vision/issues/6753, and you can also check out
21+ https://github.com/pytorch/vision/issues/7319 to learn more about the APIs
22+ that we suspect might involve future changes.
23+
824Transforms are common image transformations available in the
925``torchvision.transforms `` module. They can be chained together using
1026:class: `Compose `.
@@ -253,6 +269,14 @@ Functional Transforms
253269
254270.. currentmodule :: torchvision.transforms.functional
255271
272+
273+ .. note ::
274+ You'll find below the documentation for the existing
275+ ``torchvision.transforms.functional `` namespace. The
276+ ``torchvision.transforms.v2.functional `` namespace exists as well and can be
277+ used! The same functionals are present, so you simply need to change your
278+ import to rely on the ``v2 `` namespace.
279+
256280Functional transforms give you fine-grained control of the transformation pipeline.
257281As opposed to the transformations above, functional transforms don't contain a random number
258282generator for their parameters.
0 commit comments