swin_v2_t¶
- torchvision.models.swin_v2_t(*, weights: Optional[Swin_V2_T_Weights] = None, progress: bool = True, **kwargs: Any) SwinTransformer[source]¶
Constructs a swin_v2_tiny architecture from Swin Transformer V2: Scaling Up Capacity and Resolution.
- Parameters:
weights (
Swin_V2_T_Weights, optional) – The pretrained weights to use. SeeSwin_V2_T_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.swin_transformer.SwinTransformerbase class. Please refer to the source code for more details about this class.