Skip to content
fn

convnext_tiny

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

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

Builds the canonical ConvNeXt-T configuration: depths=(3, 3, 9, 3), dims=(96, 192, 384, 768). The final stage produces a (B,768,H/32,W/32)(B, 768, H/32, W/32) feature map; forward_features globally averages and LayerNorms to a (B,768)(B, 768) vector. Approximately 29M parameters — Swin-T equivalent.

Model Size

Parameters

pretrainedbool= False
No checkpoint is published for convnext_tiny, so True raises NotImplementedError rather than return randomly initialised weights. convnext_tiny_cls is the checkpointed variant.
**overridesobject= {}
Keyword overrides on top of the canonical ConvNeXt-T config. Each override must match a field of ConvNeXtConfig.

Returns

ConvNeXt

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

Notes

ConvNeXt-T reaches 82.1% top-1 on ImageNet-1k (Liu et al., 2022, Table 1). See arXiv:2201.03545.

Examples

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

Used by 1