iBet uBet web content aggregator. Adding the entire web to your favor.
iBet uBet web content aggregator. Adding the entire web to your favor.



Link to original content: https://pytorch.org/vision/stable/models/resnet
ResNet — Torchvision 0.20 documentation
Shortcuts

ResNet

The ResNet model is based on the Deep Residual Learning for Image Recognition paper.

Note

The bottleneck of TorchVision places the stride for downsampling to the second 3x3 convolution while the original paper places it to the first 1x1 convolution. This variant improves the accuracy and is known as ResNet V1.5.

Model builders

The following model builders can be used to instantiate a ResNet model, with or without pre-trained weights. All the model builders internally rely on the torchvision.models.resnet.ResNet base class. Please refer to the source code for more details about this class.

resnet18(*[, weights, progress])

ResNet-18 from Deep Residual Learning for Image Recognition.

resnet34(*[, weights, progress])

ResNet-34 from Deep Residual Learning for Image Recognition.

resnet50(*[, weights, progress])

ResNet-50 from Deep Residual Learning for Image Recognition.

resnet101(*[, weights, progress])

ResNet-101 from Deep Residual Learning for Image Recognition.

resnet152(*[, weights, progress])

ResNet-152 from Deep Residual Learning for Image Recognition.

Docs

Access comprehensive developer documentation for PyTorch

View Docs

Tutorials

Get in-depth tutorials for beginners and advanced developers

View Tutorials

Resources

Find development resources and get your questions answered

View Resources