Skip to content
fn

resnext_101_32x8d

→ResNeXt
resnext_101_32x8d(pretrained: bool = False, overrides: object = {})

ResNeXt-101 (32x8d) feature-extracting backbone.

Builds a ResNeXt with the higher-capacity ResNeXt-101 (32x8d) topology: per-stage block counts (3, 4, 23, 3), cardinality C=32C = 32, width per group d=8d = 8 (double the standard ResNeXt-101). 86.7 M parameters without a classifier head (resnext_101_32x8d_cls adds 2.05 M more, reaching 88.8 M) — the widest of the canonical ResNeXt variants, widely used as the backbone for ImageNet-pretrained downstream models (e.g. Facebook's Instagram-pretrained ig_resnext_101_32x8d).

Model Size

Parameters

pretrainedbool= False
No checkpoint is published for resnext_101_32x8d, so True raises NotImplementedError rather than return randomly initialised weights. resnext_101_32x8d_cls is the checkpointed variant.
**overridesobject= {}
Keyword overrides forwarded into ResNeXtConfig.

Returns

ResNeXt

Backbone with the ResNeXt-101 (32x8d) configuration applied (or with overrides merged on top of it).

Notes

Not a variant of Xie et al., CVPR 2017 — 32x8d appears nowhere in the paper. It comes from the reference model zoo, where it is kept for its transfer-learning performance (and is the topology Facebook's Instagram-pretrained ig_resnext_101_32x8d uses).

Examples

>>> import lucid
>>> from lucid.models.vision.resnext import resnext_101_32x8d
>>> model = resnext_101_32x8d()
>>> x = lucid.randn(1, 3, 224, 224)
>>> out = model(x)
>>> out.last_hidden_state.shape   # (B, 2048, 7, 7)
(1, 2048, 7, 7)

Used by 1