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
9dfca9af
Commit
9dfca9af
authored
Jul 04, 2019
by
ekka
Committed by
Francisco Massa
Jul 04, 2019
Browse files
Fix Mask R-CNN docs (#1089)
Fixes #1047.
parent
2eaeb2a8
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 @
9dfca9af
...
@@ -31,7 +31,7 @@ class MaskRCNN(FasterRCNN):
...
@@ -31,7 +31,7 @@ class MaskRCNN(FasterRCNN):
- boxes (Tensor[N, 4]): the ground-truth boxes in [x0, y0, x1, y1] format, with values
- boxes (Tensor[N, 4]): the ground-truth boxes in [x0, y0, x1, y1] format, with values
between 0 and H and 0 and W
between 0 and H and 0 and W
- labels (Tensor[N]): the class label for each ground-truth box
- labels (Tensor[N]): the class label for each ground-truth box
- masks (Tensor[N, H, W]): the segmentation binary masks for each instance
- masks (Tensor[N,
1,
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.
...
@@ -43,7 +43,7 @@ class MaskRCNN(FasterRCNN):
...
@@ -43,7 +43,7 @@ class MaskRCNN(FasterRCNN):
0 and H and 0 and W
0 and H and 0 and W
- labels (Tensor[N]): the predicted labels for each image
- labels (Tensor[N]): the predicted labels for each image
- scores (Tensor[N]): the scores or each prediction
- scores (Tensor[N]): the scores or each prediction
- masks (Tensor[N, H, W]): the predicted masks for each instance, in 0-1 range. In order to
- masks (Tensor[N,
1,
H, W]): the predicted masks for each instance, in 0-1 range. In order to
obtain the final segmentation masks, the soft masks can be thresholded, generally
obtain the final segmentation masks, the soft masks can be thresholded, generally
with a value of 0.5 (mask >= 0.5)
with a value of 0.5 (mask >= 0.5)
...
...
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