Skip to content
fn

resnest_26_cls

→ResNeStForImageClassification17.1M
resnest_26_cls(pretrained: bool = False, overrides: object = {})

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

Builds a ResNeStForImageClassification with the ResNeSt-26 backbone (block repeats [2, 2, 2, 2]) followed by global average pooling and a linear projection. Approximately 17.1M parameters.

Model Size

Parameters

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

Returns

ResNeStForImageClassification

Classifier with the ResNeSt-26 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_26_cls
>>> model = resnest_26_cls()
>>> x = lucid.randn(1, 3, 224, 224)
>>> out = model(x)
>>> out.logits.shape
(1, 1000)

Used by 1