Skip to content
fn

convnext_xlarge

→ConvNeXt350M
convnext_xlarge(pretrained: bool = False, overrides: object = {})

ConvNeXt-XLarge backbone (Liu et al., 2022).

Builds the canonical ConvNeXt-XL configuration: depths=(3, 3, 27, 3), dims=(256, 512, 1024, 2048). Final feature width is 2048 — twice the ConvNeXt-B width. Approximately 350M parameters — the largest variant in the paper.

Model Size

Parameters

pretrainedbool= False
No checkpoint is published for convnext_xlarge, so True raises NotImplementedError rather than return randomly initialised weights. convnext_xlarge_cls is the checkpointed variant.
**overridesobject= {}
Keyword overrides on top of the canonical ConvNeXt-XL config.

Returns

ConvNeXt

A ConvNeXt backbone returning a flat (B,2048)(B, 2048) feature.

Notes

ConvNeXt-XL reaches 87.0% top-1 on ImageNet-1k at 224x224 — and 87.8% at 384x384 — after ImageNet-22k pretraining (Liu et al., 2022, Table 1 lower block; per-resolution detail in Table 12). 87.0 is the 224 number, which is what this family's weight entry preprocesses for.

Examples

>>> import lucid
>>> from lucid.models.vision.convnext import convnext_xlarge
>>> model = convnext_xlarge()
>>> x = lucid.randn(1, 3, 224, 224)
>>> model.forward_features(x).shape
(1, 2048)

Used by 1