swin_b¶
- torchvision.models.swin_b(*, weights: Optional[Swin_B_Weights] = None, progress: bool = True, **kwargs: Any) SwinTransformer[source]¶
Constructs a swin_base architecture from Swin Transformer: Hierarchical Vision Transformer using Shifted Windows.
- Parameters:
weights (
Swin_B_Weights, optional) – The pretrained weights to use. SeeSwin_B_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.