Skip to content

Commit b1d4771

Browse files
NicolasHugfacebook-github-bot
authored andcommitted
[fbsync] Update docstrings of MaskRCNN (#9083)
Summary: Co-authored-by: Nicolas Hug <[email protected]> Reviewed By: AntoineSimoulin Differential Revision: D79175056 fbshipit-source-id: 7b1394d3dccbefcb047fd2427ce0fb46955826c7
1 parent ec0cf3e commit b1d4771

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

torchvision/models/detection/mask_rcnn.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ class MaskRCNN(FasterRCNN):
5050
``0 <= x1 < x2 <= W`` and ``0 <= y1 < y2 <= H``.
5151
- labels (Int64Tensor[N]): the predicted labels for each image
5252
- scores (Tensor[N]): the scores or each prediction
53-
- masks (UInt8Tensor[N, 1, H, W]): the predicted masks for each instance, in 0-1 range. In order to
53+
- masks (FloatTensor[N, 1, H, W]): the predicted masks for each instance, in 0-1 range. In order to
5454
obtain the final segmentation masks, the soft masks can be thresholded, generally
5555
with a value of 0.5 (mask >= 0.5)
5656

0 commit comments

Comments
 (0)