resnext_50_32x4d(pretrained: bool = False, overrides: object = {})ResNeXt-50 (32x4d) feature-extracting backbone.
Builds a ResNeXt with the paper-cited ResNeXt-50 (32x4d)
topology: per-stage block counts (3, 4, 6, 3) (same as
ResNet-50), cardinality , width per group
. Approximately 25.0 M parameters — within roughly
1% of ResNet-50's parameter budget while achieving ≈1pp higher
ImageNet top-1 accuracy (77.8% in Xie et al., 2017, Table 5).
Model Size
Parameters
pretrainedbool= FalseReserved for future pretrained-weight loading. Currently
ignored — the returned model is randomly initialised.
**overridesobject= {}Keyword overrides forwarded into
ResNeXtConfig to
customise in_channels, num_classes, cardinality,
width_per_group, or dropout.Returns
ResNeXtBackbone with the ResNeXt-50 (32x4d) configuration applied
(or with overrides merged on top of it).
Notes
See Xie et al., "Aggregated Residual Transformations for Deep
Neural Networks", CVPR 2017, Table 1. The 32x4d shorthand
encodes — cardinality times width-per-group.
Final-stage output is 2048 channels.
Examples
>>> import lucid
>>> from lucid.models.vision.resnext import resnext_50_32x4d
>>> model = resnext_50_32x4d()
>>> x = lucid.randn(1, 3, 224, 224)
>>> out = model(x)
>>> out.last_hidden_state.shape # (B, 2048, 7, 7)
(1, 2048, 7, 7)