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= FalseReserved for future pretrained-weight loading. Currently
ignored.
**overridesobject= {}Keyword overrides forwarded into
ResNeStConfig.Returns
ResNeStForImageClassificationClassifier 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)