Skip to content
fn

convnext_base

→ConvNeXt88.6M
convnext_base(pretrained: bool = False, overrides: object = {})

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

Builds the canonical ConvNeXt-B configuration: depths=(3, 3, 27, 3), dims=(128, 256, 512, 1024). Final feature width is 1024. Approximately 89M parameters — Swin-B equivalent.

Model Size

Parameters

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

Returns

ConvNeXt

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

Notes

ConvNeXt-B reaches 83.8% top-1 on ImageNet-1k (224x224). With ImageNet-22k pretraining it reaches 85.8% at 224x224 and 86.8% at 384x384 (Liu et al., 2022, Table 1 lower block; the per-resolution breakdown is Table 12 — Table 11 is "Detailed results for modernizing a ResNet-200").

Examples

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

Used by 1