resnet.rst 1.0 KB

123456789101112131415161718192021222324252627282930313233
  1. ResNet
  2. ======
  3. .. currentmodule:: torchvision.models
  4. The ResNet model is based on the `Deep Residual Learning for Image Recognition
  5. <https://arxiv.org/abs/1512.03385>`_ paper.
  6. .. note::
  7. The bottleneck of TorchVision places the stride for downsampling to the second 3x3
  8. convolution while the original paper places it to the first 1x1 convolution.
  9. This variant improves the accuracy and is known as `ResNet V1.5
  10. <https://ngc.nvidia.com/catalog/model-scripts/nvidia:resnet_50_v1_5_for_pytorch>`_.
  11. Model builders
  12. --------------
  13. The following model builders can be used to instantiate a ResNet model, with or
  14. without pre-trained weights. All the model builders internally rely on the
  15. ``torchvision.models.resnet.ResNet`` base class. Please refer to the `source
  16. code
  17. <https://github.com/pytorch/vision/blob/main/torchvision/models/resnet.py>`_ for
  18. more details about this class.
  19. .. autosummary::
  20. :toctree: generated/
  21. :template: function.rst
  22. resnet18
  23. resnet34
  24. resnet50
  25. resnet101
  26. resnet152