Skip to content
fn

mobilenet_025_cls

→MobileNetForImageClassification470K
mobilenet_025_cls(pretrained: bool = False, overrides: object = {})

MobileNet-v1 image classifier at width multiplier α=0.25\alpha = 0.25.

Builds a MobileNetForImageClassification with the paper-cited 0.25-width topology — approximately 0.5M parameters and 50.6% ImageNet-1k top-1 in Howard et al., 2017 (Table 6). The smallest variant in the family, targeted at extreme edge deployments.

Model Size

Parameters

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

Returns

MobileNetForImageClassification

Classifier with the MobileNet-v1 (α=0.25\alpha = 0.25) configuration applied (or with overrides merged on top of it).

Notes

See Howard et al., "MobileNets: Efficient Convolutional Neural Networks for Mobile Vision Applications", arXiv:1704.04861, 2017, Table 6.

Examples

>>> import lucid
>>> from lucid.models.vision.mobilenet import mobilenet_025_cls
>>> model = mobilenet_025_cls()
>>> x = lucid.randn(1, 3, 224, 224)
>>> out = model(x)
>>> out.logits.shape
(1, 1000)

Used by 1