Skip to content

Commit

Permalink
Merge branch 'main' into lajenfljaenf
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolasHug authored Apr 19, 2024
2 parents 8faf2ab + ba94133 commit 259e881
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion torchvision/tv_tensors/_bounding_boxes.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class BoundingBoxFormat(Enum):


class BoundingBoxes(TVTensor):
""":class:`torch.Tensor` subclass for bounding boxes.
""":class:`torch.Tensor` subclass for bounding boxes with shape ``[N, 4]``.
.. note::
There should be only one :class:`~torchvision.tv_tensors.BoundingBoxes`
Expand Down
2 changes: 1 addition & 1 deletion torchvision/tv_tensors/_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@


class Image(TVTensor):
""":class:`torch.Tensor` subclass for images.
""":class:`torch.Tensor` subclass for images with shape ``[..., C, H, W]``.
.. note::
Expand Down
2 changes: 1 addition & 1 deletion torchvision/tv_tensors/_mask.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@


class Mask(TVTensor):
""":class:`torch.Tensor` subclass for segmentation and detection masks.
""":class:`torch.Tensor` subclass for segmentation and detection masks with shape ``[..., H, W]``.
Args:
data (tensor-like, PIL.Image.Image): Any data that can be turned into a tensor with :func:`torch.as_tensor` as
Expand Down
2 changes: 1 addition & 1 deletion torchvision/tv_tensors/_video.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@


class Video(TVTensor):
""":class:`torch.Tensor` subclass for videos.
""":class:`torch.Tensor` subclass for videos with shape ``[..., T, C, H, W]``.
Args:
data (tensor-like): Any data that can be turned into a tensor with :func:`torch.as_tensor`.
Expand Down

0 comments on commit 259e881

Please sign in to comment.