efficientnet_b1_cls(pretrained: bool | str = False, weights: EfficientNetB1Weights | None = None, overrides: object = {})EfficientNet-B1 image classifier (backbone + GAP + linear head).
Builds an EfficientNetForImageClassification with the
B1 compound-scaling configuration (depth × 1.1, width × 1.0)
followed by dropout () and a linear classifier.
Approximately 7.8M parameters and 79.1% ImageNet-1k top-1
accuracy at 240×240 (Tan & Le, 2019, Table 2).
Model Size
Parameters
pretrainedbool or str= FalsePretrained-weight selector.
False → random init; True
→ the DEFAULT tag
(EfficientNetB1Weights.IMAGENET1K_V1); a tag string →
that specific checkpoint. Mutually exclusive with weights.Explicit weights enum member. Takes precedence over
pretrained.**overridesobject= {}Keyword overrides forwarded into
EfficientNetConfig.Returns
EfficientNetForImageClassificationClassifier with the B1 configuration applied (or with
overrides merged on top of it), optionally initialised from
pretrained weights.
Notes
See Tan & Le, "EfficientNet: Rethinking Model Scaling for
Convolutional Neural Networks", ICML 2019 (arXiv:1905.11946),
Table 2. Pretrained weights are converted from the
reference-framework EfficientNet_B1_Weights and hosted under
lucid-dl/efficientnet-b1.
Examples
>>> import lucid
>>> from lucid.models.vision.efficientnet import efficientnet_b1_cls
>>> model = efficientnet_b1_cls(pretrained=True)
>>> x = lucid.randn(1, 3, 240, 240)
>>> out = model(x)
>>> out.logits.shape
(1, 1000)