inception_next_small_cls(pretrained: bool | str = False, weights: InceptionNeXtSmallWeights | None = None, overrides: object = {})InceptionNeXt-Small image classifier (Yu et al., 2024).
Combines the inception_next_small backbone with the
reference MLP classifier head (Linear → GELU → LayerNorm → Linear). Default output is num_classes=1000 (ImageNet-1k).
Approximately 49M parameters.
Model Size
Parameters
pretrainedbool or str= FalsePretrained-weight selector.
False → random init; True
→ the DEFAULT tag (InceptionNeXtSmallWeights.SAIL_IN1K);
a tag string → that specific checkpoint. Mutually exclusive
with weights (which wins if both given).Explicit weights enum member. Takes precedence over
pretrained.**overridesobject= {}Keyword overrides on top of the canonical InceptionNeXt-S config.
Returns
InceptionNeXtForImageClassificationClassifier returning ImageClassificationOutput whose
logits has shape (B, num_classes).
Notes
InceptionNeXt-S reaches 83.5% top-1 on ImageNet-1k (Yu et al.,
2024, Table 2). Pretrained weights are converted from timm's
inception_next_small.sail_in1k and hosted on the Hugging Face
Hub under lucid-dl/inception-next-small.
Examples
>>> import lucid
>>> from lucid.models.vision.inception_next import inception_next_small_cls
>>> model = inception_next_small_cls(num_classes=1000)
>>> x = lucid.randn(1, 3, 224, 224)
>>> model(x).logits.shape
(1, 1000)