@@ -578,9 +578,8 @@ def ssd300_vgg16(
578578 trainable_backbone_layers : Optional [int ] = None ,
579579 ** kwargs : Any ,
580580) -> 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.
584583
585584 The input to the model is expected to be a list of tensors, each of shape [C, H, W], one for each
586585 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(
615614 >>> predictions = model(x)
616615
617616 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.
620624 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
622627 trainable_backbone_layers (int, optional): number of trainable (not frozen) layers starting from final block.
623628 Valid values are between 0 and 5, with 5 meaning all backbone layers are trainable. If ``None`` is
624629 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:
625637 """
626638 weights = SSD300_VGG16_Weights .verify (weights )
627639 weights_backbone = VGG16_Weights .verify (weights_backbone )
0 commit comments