Skip to content

Commit c50d0fc

Browse files
authored
Added paper references to detection models (#4383)
* Added paper references to detection models * Ignore linter warning * Break long line into two
1 parent cadb168 commit c50d0fc

File tree

4 files changed

+9
-0
lines changed

4 files changed

+9
-0
lines changed

torchvision/models/detection/faster_rcnn.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,9 @@ def fasterrcnn_resnet50_fpn(pretrained=False, progress=True,
300300
"""
301301
Constructs a Faster R-CNN model with a ResNet-50-FPN backbone.
302302
303+
Reference: `"Faster R-CNN: Towards Real-Time Object Detection with
304+
Region Proposal Networks" <https://arxiv.org/abs/1506.01497>`_.
305+
303306
The input to the model is expected to be a list of tensors, each of shape ``[C, H, W]``, one for each
304307
image, and should be in ``0-1`` range. Different images can have different sizes.
305308

torchvision/models/detection/keypoint_rcnn.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,8 @@ def keypointrcnn_resnet50_fpn(pretrained=False, progress=True,
278278
"""
279279
Constructs a Keypoint R-CNN model with a ResNet-50-FPN backbone.
280280
281+
Reference: `"Mask R-CNN" <https://arxiv.org/abs/1703.06870>`_.
282+
281283
The input to the model is expected to be a list of tensors, each of shape ``[C, H, W]``, one for each
282284
image, and should be in ``0-1`` range. Different images can have different sizes.
283285

torchvision/models/detection/mask_rcnn.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,8 @@ def maskrcnn_resnet50_fpn(pretrained=False, progress=True,
271271
"""
272272
Constructs a Mask R-CNN model with a ResNet-50-FPN backbone.
273273
274+
Reference: `"Mask R-CNN" <https://arxiv.org/abs/1703.06870>`_.
275+
274276
The input to the model is expected to be a list of tensors, each of shape ``[C, H, W]``, one for each
275277
image, and should be in ``0-1`` range. Different images can have different sizes.
276278

torchvision/models/detection/retinanet.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -569,6 +569,8 @@ def retinanet_resnet50_fpn(pretrained=False, progress=True,
569569
"""
570570
Constructs a RetinaNet model with a ResNet-50-FPN backbone.
571571
572+
Reference: `"Focal Loss for Dense Object Detection" <https://arxiv.org/abs/1708.02002>`_.
573+
572574
The input to the model is expected to be a list of tensors, each of shape ``[C, H, W]``, one for each
573575
image, and should be in ``0-1`` range. Different images can have different sizes.
574576

0 commit comments

Comments
 (0)