Skip to content

Commit 539d5e2

Browse files
NicolasHugfacebook-github-bot
authored andcommitted
[fbsync] fix/update RCNN-family docstrings (#8231)
Reviewed By: vmoens Differential Revision: D55062766 fbshipit-source-id: beac8f5ab26a8e2dfdbb4fb2128ddb2ac0bfbf00
1 parent 5cbb1bd commit 539d5e2

File tree

4 files changed

+4
-6
lines changed

4 files changed

+4
-6
lines changed

torchvision/models/detection/faster_rcnn.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,7 @@ class FasterRCNN(GeneralizedRCNN):
9696
for computing the loss
9797
rpn_positive_fraction (float): proportion of positive anchors in a mini-batch during training
9898
of the RPN
99-
rpn_score_thresh (float): during inference, only return proposals with a classification score
100-
greater than rpn_score_thresh
99+
rpn_score_thresh (float): only return proposals with an objectness score greater than rpn_score_thresh
101100
box_roi_pool (MultiScaleRoIAlign): the module which crops and resizes the feature maps in
102101
the locations indicated by the bounding boxes
103102
box_head (nn.Module): module that takes the cropped feature maps as input

torchvision/models/detection/keypoint_rcnn.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,7 @@ class KeypointRCNN(FasterRCNN):
8383
for computing the loss
8484
rpn_positive_fraction (float): proportion of positive anchors in a mini-batch during training
8585
of the RPN
86-
rpn_score_thresh (float): during inference, only return proposals with a classification score
87-
greater than rpn_score_thresh
86+
rpn_score_thresh (float): only return proposals with an objectness score greater than rpn_score_thresh
8887
box_roi_pool (MultiScaleRoIAlign): the module which crops and resizes the feature maps in
8988
the locations indicated by the bounding boxes
9089
box_head (nn.Module): module that takes the cropped feature maps as input

torchvision/models/detection/mask_rcnn.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,7 @@ class MaskRCNN(FasterRCNN):
8484
for computing the loss
8585
rpn_positive_fraction (float): proportion of positive anchors in a mini-batch during training
8686
of the RPN
87-
rpn_score_thresh (float): during inference, only return proposals with a classification score
88-
greater than rpn_score_thresh
87+
rpn_score_thresh (float): only return proposals with an objectness score greater than rpn_score_thresh
8988
box_roi_pool (MultiScaleRoIAlign): the module which crops and resizes the feature maps in
9089
the locations indicated by the bounding boxes
9190
box_head (nn.Module): module that takes the cropped feature maps as input

torchvision/models/detection/rpn.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ class RegionProposalNetwork(torch.nn.Module):
133133
contain two fields: training and testing, to allow for different values depending
134134
on training or evaluation
135135
nms_thresh (float): NMS threshold used for postprocessing the RPN proposals
136+
score_thresh (float): only return proposals with an objectness score greater than score_thresh
136137
137138
"""
138139

0 commit comments

Comments
 (0)