@@ -578,9 +578,8 @@ def ssd300_vgg16(
578
578
trainable_backbone_layers : Optional [int ] = None ,
579
579
** kwargs : Any ,
580
580
) -> SSD :
581
- """Constructs an SSD model with input size 300x300 and a VGG16 backbone.
582
-
583
- Reference: `"SSD: Single Shot MultiBox Detector" <https://arxiv.org/abs/1512.02325>`_.
581
+ """The SSD300 model is based on the `SSD: Single Shot MultiBox Detector
582
+ <https://arxiv.org/abs/1512.02325>`_ paper.
584
583
585
584
The input to the model is expected to be a list of tensors, each of shape [C, H, W], one for each
586
585
image, and should be in 0-1 range. Different images can have different sizes but they will be resized
@@ -615,13 +614,26 @@ def ssd300_vgg16(
615
614
>>> predictions = model(x)
616
615
617
616
Args:
618
- weights (SSD300_VGG16_Weights, optional): The pretrained weights for the model
619
- progress (bool): If True, displays a progress bar of the download to stderr
617
+ weights (:class:`~torchvision.models.detection.SSD300_VGG16_Weights`, optional): The pretrained
618
+ weights to use. See
619
+ :class:`~torchvision.models.detection.SSD300_VGG16_Weights`
620
+ below for more details, and possible values. By default, no
621
+ pre-trained weights are used.
622
+ progress (bool, optional): If True, displays a progress bar of the download to stderr
623
+ Default is True.
620
624
num_classes (int, optional): number of output classes of the model (including the background)
621
- weights_backbone (VGG16_Weights, optional): The pretrained weights for the backbone
625
+ weights_backbone (:class:`~torchvision.models.VGG16_Weights`, optional): The pretrained weights for the
626
+ backbone
622
627
trainable_backbone_layers (int, optional): number of trainable (not frozen) layers starting from final block.
623
628
Valid values are between 0 and 5, with 5 meaning all backbone layers are trainable. If ``None`` is
624
629
passed (the default) this value is set to 4.
630
+ **kwargs: parameters passed to the ``torchvision.models.detection.SSD``
631
+ base class. Please refer to the `source code
632
+ <https://github.com/pytorch/vision/blob/main/torchvision/models/detection/ssd.py>`_
633
+ for more details about this class.
634
+
635
+ .. autoclass:: torchvision.models.detection.SSD300_VGG16_Weights
636
+ :members:
625
637
"""
626
638
weights = SSD300_VGG16_Weights .verify (weights )
627
639
weights_backbone = VGG16_Weights .verify (weights_backbone )
0 commit comments