vit_b_32¶
- torchvision.models.vit_b_32(*, weights: Optional[ViT_B_32_Weights] = None, progress: bool = True, **kwargs: Any) VisionTransformer[source]¶
Constructs a vit_b_32 architecture from An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale.
- Parameters:
weights (
ViT_B_32_Weights, optional) – The pretrained weights to use. SeeViT_B_32_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.vision_transformer.VisionTransformerbase class. Please refer to the source code for more details about this class.