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
c5533a2c
Unverified
Commit
c5533a2c
authored
Aug 05, 2019
by
Francisco Massa
Committed by
GitHub
Aug 05, 2019
Browse files
Fix mask dimension in MaskRCNN docstring (#1198)
parent
1b673fd2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
torchvision/models/detection/mask_rcnn.py
torchvision/models/detection/mask_rcnn.py
+2
-2
No files found.
torchvision/models/detection/mask_rcnn.py
View file @
c5533a2c
...
@@ -31,7 +31,7 @@ class MaskRCNN(FasterRCNN):
...
@@ -31,7 +31,7 @@ class MaskRCNN(FasterRCNN):
- boxes (FloatTensor[N, 4]): the ground-truth boxes in [x1, y1, x2, y2] format, with values
- boxes (FloatTensor[N, 4]): the ground-truth boxes in [x1, y1, x2, y2] format, with values
between 0 and H and 0 and W
between 0 and H and 0 and W
- labels (Int64Tensor[N]): the class label for each ground-truth box
- labels (Int64Tensor[N]): the class label for each ground-truth box
- masks (UInt8Tensor[N,
1,
H, W]): the segmentation binary masks for each instance
- masks (UInt8Tensor[N, H, W]): the segmentation binary masks for each instance
The model returns a Dict[Tensor] during training, containing the classification and regression
The model returns a Dict[Tensor] during training, containing the classification and regression
losses for both the RPN and the R-CNN, and the mask loss.
losses for both the RPN and the R-CNN, and the mask loss.
...
@@ -278,7 +278,7 @@ def maskrcnn_resnet50_fpn(pretrained=False, progress=True,
...
@@ -278,7 +278,7 @@ def maskrcnn_resnet50_fpn(pretrained=False, progress=True,
- boxes (``FloatTensor[N, 4]``): the ground-truth boxes in ``[x1, y1, x2, y2]`` format, with values
- boxes (``FloatTensor[N, 4]``): the ground-truth boxes in ``[x1, y1, x2, y2]`` format, with values
between ``0`` and ``H`` and ``0`` and ``W``
between ``0`` and ``H`` and ``0`` and ``W``
- labels (``Int64Tensor[N]``): the class label for each ground-truth box
- labels (``Int64Tensor[N]``): the class label for each ground-truth box
- masks (``UInt8Tensor[N,
1,
H, W]``): the segmentation binary masks for each instance
- masks (``UInt8Tensor[N, H, W]``): the segmentation binary masks for each instance
The model returns a ``Dict[Tensor]`` during training, containing the classification and regression
The model returns a ``Dict[Tensor]`` during training, containing the classification and regression
losses for both the RPN and the R-CNN, and the mask loss.
losses for both the RPN and the R-CNN, and the mask loss.
...
...
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