Skip to content

Commit f85bb20

Browse files
authored
Merge branch 'main' into fix/cxcywh-to-xyxy-int-conversion
2 parents d6c193c + 6940e19 commit f85bb20

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

torchvision/datasets/celeba.py

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,18 @@ class CelebA(VisionDataset):
2626
2727
- ``attr`` (Tensor shape=(40,) dtype=int): binary (0, 1) labels for attributes
2828
- ``identity`` (int): label for each person (data points with the same identity are the same person)
29-
- ``bbox`` (Tensor shape=(4,) dtype=int): bounding box (x, y, width, height)
29+
- ``bbox`` (Tensor shape=(4,) dtype=int): bounding box (x, y, width, height).
30+
31+
.. warning::
32+
33+
These bounding box coordinates correspond to the original uncropped
34+
CelebA images, not the cropped and aligned images returned by this
35+
dataset. As a result, the coordinates will not match and may fall
36+
outside the image boundaries.
37+
38+
See `Issue #9008 <https://github.com/pytorch/vision/issues/9008>`_ for
39+
details and potential workarounds.
40+
3041
- ``landmarks`` (Tensor shape=(10,) dtype=int): landmark points (lefteye_x, lefteye_y, righteye_x,
3142
righteye_y, nose_x, nose_y, leftmouth_x, leftmouth_y, rightmouth_x, rightmouth_y)
3243

0 commit comments

Comments
 (0)