mobilenet_v2¶
- torchvision.models.mobilenet_v2(*, weights: Optional[MobileNet_V2_Weights] = None, progress: bool = True, **kwargs: Any) MobileNetV2[source]¶
MobileNetV2 architecture from the MobileNetV2: Inverted Residuals and Linear Bottlenecks paper.
- Parameters:
weights (
MobileNet_V2_Weights, optional) – The pretrained weights to use. SeeMobileNet_V2_Weightsbelow for more details, and possible values. By default, no pre-trained weights are used.progress (bool, optional) – If True, displays a progress bar of the download to stderr. Default is True.
**kwargs – parameters passed to the
torchvision.models.mobilenetv2.MobileNetV2base class. Please refer to the source code for more details about this class.