Skip to content
fn

mobilenet_050_cls

→MobileNetForImageClassification1.3M
mobilenet_050_cls(pretrained: bool = False, overrides: object = {})

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

Builds a MobileNetForImageClassification with the paper-cited 0.5-width topology — approximately 1.3M parameters and 63.7% ImageNet-1k top-1 in Howard et al., 2017 (Table 6).

Model Size

Parameters

pretrainedbool= False
No checkpoint is published for mobilenet_050_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.5\alpha = 0.5) 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_050_cls
>>> model = mobilenet_050_cls()
>>> x = lucid.randn(1, 3, 224, 224)
>>> out = model(x)
>>> out.logits.shape
(1, 1000)

Used by 1