- torchvision.models.resnet18(*, weights: Optional[ResNet18_Weights] = None, progress: bool = True, **kwargs: Any) ResNet ¶
ResNet-18 from Deep Residual Learning for Image Recognition.
progress (bool, optional) – If True, displays a progress bar of the download to stderr. Default is True.
**kwargs – parameters passed to the
torchvision.models.resnet.ResNetbase class. Please refer to the source code for more details about this class.
- class torchvision.models.ResNet18_Weights(value)¶