ConvNeXt Tiny model architecture from the `A ConvNet for the 2020s `_ paper. Args: weights (:class:`~torchvision.models.convnext.ConvNeXt_Tiny_Weights`, optional): The pretrained weights to use. See :class:`~torchvision.models.convnext.C
(*, weights: Optional[ConvNeXt_Tiny_Weights] = None, progress: bool = True, **kwargs: Any)
| 290 | @register_model() |
| 291 | @handle_legacy_interface(weights=("pretrained", ConvNeXt_Tiny_Weights.IMAGENET1K_V1)) |
| 292 | def convnext_tiny(*, weights: Optional[ConvNeXt_Tiny_Weights] = None, progress: bool = True, **kwargs: Any) -> ConvNeXt: |
| 293 | """ConvNeXt Tiny model architecture from the |
| 294 | `A ConvNet for the 2020s <https://arxiv.org/abs/2201.03545>`_ paper. |
| 295 | |
| 296 | Args: |
| 297 | weights (:class:`~torchvision.models.convnext.ConvNeXt_Tiny_Weights`, optional): The pretrained |
| 298 | weights to use. See :class:`~torchvision.models.convnext.ConvNeXt_Tiny_Weights` |
| 299 | below for more details and possible values. By default, no pre-trained weights are used. |
| 300 | progress (bool, optional): If True, displays a progress bar of the download to stderr. Default is True. |
| 301 | **kwargs: parameters passed to the ``torchvision.models.convnext.ConvNext`` |
| 302 | base class. Please refer to the `source code |
| 303 | <https://github.com/pytorch/vision/blob/main/torchvision/models/convnext.py>`_ |
| 304 | for more details about this class. |
| 305 | |
| 306 | .. autoclass:: torchvision.models.ConvNeXt_Tiny_Weights |
| 307 | :members: |
| 308 | """ |
| 309 | weights = ConvNeXt_Tiny_Weights.verify(weights) |
| 310 | |
| 311 | block_setting = [ |
| 312 | CNBlockConfig(96, 192, 3), |
| 313 | CNBlockConfig(192, 384, 3), |
| 314 | CNBlockConfig(384, 768, 9), |
| 315 | CNBlockConfig(768, None, 3), |
| 316 | ] |
| 317 | stochastic_depth_prob = kwargs.pop("stochastic_depth_prob", 0.1) |
| 318 | return _convnext(block_setting, stochastic_depth_prob, weights, progress, **kwargs) |
| 319 | |
| 320 | |
| 321 | @register_model() |
nothing calls this directly
no test coverage detected
searching dependent graphs…