File size: 1,934 Bytes
e1e9ed0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
39b83d0
e1e9ed0
 
 
 
 
39b83d0
e1e9ed0
 
 
39b83d0
e1e9ed0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
---
library_name: lucid
license: apache-2.0
tags:
  - image-classification
  - efficientnet
  - lucid
datasets:
  - imagenet-1k
pipeline_tag: image-classification
model-index:
  - name: efficientnet-b5
    results:
      - task: { type: image-classification }
        dataset: { name: ImageNet-1K, type: imagenet-1k }
        metrics:
          - { type: acc@1, value: 83.444 }
          - { type: acc@5, value: 96.628 }
---

# EfficientNet-B5

> Tan & Le, 2019 — *EfficientNet: Rethinking Model Scaling for Convolutional Neural Networks* (arXiv:1905.11946)

[Lucid](https://github.com/ChanLumerico/lucid) port of `torchvision/EfficientNet_B5_Weights.IMAGENET1K_V1`,
converted to Lucid-native safetensors.

## Available weights

| Tag | acc@1 | acc@5 | Params | GFLOPs | Size | Source |
|---|---|---|---|---|---|---|
| `IMAGENET1K_V1` *(default)* | 83.444 | 96.628 | 30.4M | 10.266 | 116.67 MB | torchvision |

## Usage

```python
import lucid.models as models
from lucid.models.weights import EfficientNetB5Weights

# default tag
model = models.efficientnet_b5_cls(pretrained=True)

# explicit tag (enum or string)
model = models.efficientnet_b5_cls(weights=EfficientNetB5Weights.IMAGENET1K_V1)
model = models.efficientnet_b5_cls(pretrained="IMAGENET1K_V1")

# preprocessing travels with the weights
weights = EfficientNetB5Weights.IMAGENET1K_V1
preprocess = weights.transforms()
logits = model(preprocess(image)[None]).logits
```

## Conversion

Converted from `torchvision/EfficientNet_B5_Weights.IMAGENET1K_V1` via
`python -m tools.convert_weights efficientnet_b5 --tag IMAGENET1K_V1`.
Key mapping + numerical parity verified against the source.

## License

`apache-2.0` — inherited from the original weights.

## Citation

```
@inproceedings{tan2019efficientnet,
  title={EfficientNet: Rethinking Model Scaling for Convolutional Neural Networks},
  author={Tan, Mingxing and Le, Quoc},
  booktitle={ICML}, year={2019}
}
```