Skip to content
fn

resnest_14_cls

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

ResNeSt-14 image classifier (backbone + GAP + linear head).

Builds a ResNeStForImageClassification with the ResNeSt-14 backbone (block repeats [1, 1, 1, 1]) followed by global average pooling and a linear projection to config.num_classes (default 1000 for ImageNet-1k). Approximately 10.6M parameters — the lightweight variant of the ResNeSt family.

Model Size

Parameters

pretrainedbool= False
No checkpoint is published for resnest_14_cls, so True raises NotImplementedError rather than return randomly initialised weights.
**overridesobject= {}
Keyword overrides forwarded into ResNeStConfig.

Returns

ResNeStForImageClassification

Classifier with the ResNeSt-14 configuration applied (or with overrides merged on top of it).

Notes

See Zhang et al., "ResNeSt: Split-Attention Networks", CVPR Workshops 2022 (arXiv:2004.08955).

Examples

>>> import lucid
>>> from lucid.models.vision.resnest import resnest_14_cls
>>> model = resnest_14_cls(num_classes=10)
>>> x = lucid.randn(2, 3, 224, 224)
>>> out = model(x)
>>> out.logits.shape
(2, 10)

Used by 1