Commit 9dfca9af authored by ekka's avatar ekka Committed by Francisco Massa
Browse files

Fix Mask R-CNN docs (#1089)

Fixes #1047.
parent 2eaeb2a8
...@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment