ConvNeXt Large model architecture from the `A ConvNet for the 2020s `_ paper. Args: weights (:class:`~torchvision.models.convnext.ConvNeXt_Large_Weights`, optional): The pretrained weights to use. See :class:`~torchvision.models.convnext
(
*, weights: Optional[ConvNeXt_Large_Weights] = None, progress: bool = True, **kwargs: Any
)
| 385 | @register_model() |
| 386 | @handle_legacy_interface(weights=("pretrained", ConvNeXt_Large_Weights.IMAGENET1K_V1)) |
| 387 | def convnext_large( |
| 388 | *, weights: Optional[ConvNeXt_Large_Weights] = None, progress: bool = True, **kwargs: Any |
| 389 | ) -> ConvNeXt: |
| 390 | """ConvNeXt Large model architecture from the |
| 391 | `A ConvNet for the 2020s <https://arxiv.org/abs/2201.03545>`_ paper. |
| 392 | |
| 393 | Args: |
| 394 | weights (:class:`~torchvision.models.convnext.ConvNeXt_Large_Weights`, optional): The pretrained |
| 395 | weights to use. See :class:`~torchvision.models.convnext.ConvNeXt_Large_Weights` |
| 396 | below for more details and possible values. By default, no pre-trained weights are used. |
| 397 | progress (bool, optional): If True, displays a progress bar of the download to stderr. Default is True. |
| 398 | **kwargs: parameters passed to the ``torchvision.models.convnext.ConvNext`` |
| 399 | base class. Please refer to the `source code |
| 400 | <https://github.com/pytorch/vision/blob/main/torchvision/models/convnext.py>`_ |
| 401 | for more details about this class. |
| 402 | |
| 403 | .. autoclass:: torchvision.models.ConvNeXt_Large_Weights |
| 404 | :members: |
| 405 | """ |
| 406 | weights = ConvNeXt_Large_Weights.verify(weights) |
| 407 | |
| 408 | block_setting = [ |
| 409 | CNBlockConfig(192, 384, 3), |
| 410 | CNBlockConfig(384, 768, 3), |
| 411 | CNBlockConfig(768, 1536, 27), |
| 412 | CNBlockConfig(1536, None, 3), |
| 413 | ] |
| 414 | stochastic_depth_prob = kwargs.pop("stochastic_depth_prob", 0.5) |
| 415 | return _convnext(block_setting, stochastic_depth_prob, weights, progress, **kwargs) |
nothing calls this directly
no test coverage detected
searching dependent graphs…