Skip to content

Commit 6e7b15f

Browse files
remove box parameters
1 parent b812a99 commit 6e7b15f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

gallery/transforms/plot_keypoints_transforms.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Transforms on KeyPoints
44
===============================================================
55
6-
This example illustrates how to define and use rotated bounding boxes.
6+
This example illustrates how to define and use keypoints.
77
88
.. note::
99
Support for keypoints was released in TorchVision 0.23 and is
@@ -75,29 +75,29 @@
7575
# Using :class:`~torchvision.transforms.RandomRotation`:
7676
rotater = v2.RandomRotation(degrees=(0, 180), expand=True)
7777
rotated_imgs = [rotater((orig_img, orig_pts)) for _ in range(4)]
78-
plot([(orig_img, orig_pts)] + rotated_imgs, bbox_width=10)
78+
plot([(orig_img, orig_pts)] + rotated_imgs)
7979

8080
# %%
8181
# Using :class:`~torchvision.transforms.Pad`:
8282
padded_imgs_and_points = [
8383
v2.Pad(padding=padding)(orig_img, orig_pts)
8484
for padding in (30, 50, 100, 200)
8585
]
86-
plot([(orig_img, orig_pts)] + padded_imgs_and_points, bbox_width=10)
86+
plot([(orig_img, orig_pts)] + padded_imgs_and_points)
8787

8888
# %%
8989
# Using :class:`~torchvision.transforms.Resize`:
9090
resized_imgs = [
9191
v2.Resize(size=size)(orig_img, orig_pts)
9292
for size in (300, 500, 1000, orig_img.size)
9393
]
94-
plot([(orig_img, orig_pts)] + resized_imgs, bbox_width=5)
94+
plot([(orig_img, orig_pts)] + resized_imgs)
9595

9696
# %%
9797
# Using :class:`~torchvision.transforms.RandomPerspective`:
9898
perspective_transformer = v2.RandomPerspective(distortion_scale=0.6, p=1.0)
9999
perspective_imgs = [perspective_transformer(orig_img, orig_pts) for _ in range(4)]
100-
plot([(orig_img, orig_pts)] + perspective_imgs, bbox_width=10)
100+
plot([(orig_img, orig_pts)] + perspective_imgs)
101101

102102
# %%
103103
# Using :class:`~torchvision.transforms.CenterCrop`:

0 commit comments

Comments
 (0)