Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
vision
Commits
ba94133f
Unverified
Commit
ba94133f
authored
Apr 19, 2024
by
Mantas
Committed by
GitHub
Apr 19, 2024
Browse files
Add expected shapes in tvtensors docs (#8262)
Co-authored-by:
Nicolas Hug
<
contact@nicolas-hug.com
>
parent
2ae6a6d5
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
4 deletions
+4
-4
torchvision/tv_tensors/_bounding_boxes.py
torchvision/tv_tensors/_bounding_boxes.py
+1
-1
torchvision/tv_tensors/_image.py
torchvision/tv_tensors/_image.py
+1
-1
torchvision/tv_tensors/_mask.py
torchvision/tv_tensors/_mask.py
+1
-1
torchvision/tv_tensors/_video.py
torchvision/tv_tensors/_video.py
+1
-1
No files found.
torchvision/tv_tensors/_bounding_boxes.py
View file @
ba94133f
...
@@ -25,7 +25,7 @@ class BoundingBoxFormat(Enum):
...
@@ -25,7 +25,7 @@ class BoundingBoxFormat(Enum):
class
BoundingBoxes
(
TVTensor
):
class
BoundingBoxes
(
TVTensor
):
""":class:`torch.Tensor` subclass for bounding boxes.
""":class:`torch.Tensor` subclass for bounding boxes
with shape ``[N, 4]``
.
.. note::
.. note::
There should be only one :class:`~torchvision.tv_tensors.BoundingBoxes`
There should be only one :class:`~torchvision.tv_tensors.BoundingBoxes`
...
...
torchvision/tv_tensors/_image.py
View file @
ba94133f
...
@@ -9,7 +9,7 @@ from ._tv_tensor import TVTensor
...
@@ -9,7 +9,7 @@ from ._tv_tensor import TVTensor
class
Image
(
TVTensor
):
class
Image
(
TVTensor
):
""":class:`torch.Tensor` subclass for images.
""":class:`torch.Tensor` subclass for images
with shape ``[..., C, H, W]``
.
.. note::
.. note::
...
...
torchvision/tv_tensors/_mask.py
View file @
ba94133f
...
@@ -9,7 +9,7 @@ from ._tv_tensor import TVTensor
...
@@ -9,7 +9,7 @@ from ._tv_tensor import TVTensor
class
Mask
(
TVTensor
):
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:
Args:
data (tensor-like, PIL.Image.Image): Any data that can be turned into a tensor with :func:`torch.as_tensor` as
data (tensor-like, PIL.Image.Image): Any data that can be turned into a tensor with :func:`torch.as_tensor` as
...
...
torchvision/tv_tensors/_video.py
View file @
ba94133f
...
@@ -8,7 +8,7 @@ from ._tv_tensor import TVTensor
...
@@ -8,7 +8,7 @@ from ._tv_tensor import TVTensor
class
Video
(
TVTensor
):
class
Video
(
TVTensor
):
""":class:`torch.Tensor` subclass for videos.
""":class:`torch.Tensor` subclass for videos
with shape ``[..., T, C, H, W]``
.
Args:
Args:
data (tensor-like): Any data that can be turned into a tensor with :func:`torch.as_tensor`.
data (tensor-like): Any data that can be turned into a tensor with :func:`torch.as_tensor`.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment