sk_resnet_101_cls(pretrained: bool = False, overrides: object = {})SK-ResNet-101 image classifier (backbone + GAP + linear head).
Builds an SKNetForImageClassification with the
SK-ResNet-101 backbone (bottleneck blocks stacked
[3, 4, 23, 3]) followed by global average pooling and a
linear classifier. Approximately 45M parameters.
Model Size
Parameters
pretrainedbool= FalseReserved for future pretrained-weight loading. Currently
ignored.
**overridesobject= {}Keyword overrides forwarded into
SKNetConfig.Returns
SKNetForImageClassificationClassifier with the SK-ResNet-101 configuration applied
(or with overrides merged on top of it).
Notes
See Li et al., "Selective Kernel Networks", CVPR 2019 (arXiv:1903.06586).
Examples
>>> import lucid
>>> from lucid.models.vision.sknet import sk_resnet_101_cls
>>> model = sk_resnet_101_cls()
>>> x = lucid.randn(1, 3, 224, 224)
>>> out = model(x)
>>> out.logits.shape
(1, 1000)