inception_v3¶
- torchvision.models.inception_v3(*, weights: Optional[Inception_V3_Weights] = None, progress: bool = True, **kwargs: Any) Inception3[source]¶
Inception v3 model architecture from Rethinking the Inception Architecture for Computer Vision.
Note
Important: In contrast to the other models the inception_v3 expects tensors with a size of N x 3 x 299 x 299, so ensure your images are sized accordingly.
- Parameters:
weights (
Inception_V3_Weights, optional) – The pretrained weights for the model. SeeInception_V3_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.Inception3base class. Please refer to the source code for more details about this class.