File size: 12,041 Bytes
93d200c
 
36da06e
93d200c
 
9354c05
93d200c
f60294e
93d200c
 
 
9f42c7b
93d200c
96e2c01
2f28f71
93d200c
 
96e2c01
7e6cc3c
96e2c01
 
 
 
 
 
 
 
 
 
 
 
7e6cc3c
 
 
 
 
96e2c01
 
 
 
 
 
7e6cc3c
96e2c01
 
 
 
 
 
7e6cc3c
96e2c01
 
 
 
 
 
 
7e6cc3c
96e2c01
 
7e6cc3c
96e2c01
 
 
 
4926954
7e6cc3c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
276de78
7e6cc3c
 
 
 
 
 
 
 
 
 
 
276de78
7e6cc3c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
b3b5c37
93d200c
7d81f92
 
b3b5c37
93d200c
 
 
 
 
c27ee66
93d200c
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
---
library_name: pytorch
license: other
tags:
- backbone
- bu_auto
- android
pipeline_tag: image-classification

---

![](https://qaihub-public-assets.s3.us-west-2.amazonaws.com/qai-hub-models/models/efficientnet_b0/web-assets/model_demo.png)

# EfficientNet-B0: Optimized for Qualcomm Devices

EfficientNetB0 is a machine learning model that can classify images from the Imagenet dataset. It can also be used as a backbone in building more complex models for specific use cases.

This is based on the implementation of EfficientNet-B0 found [here](https://github.com/pytorch/vision/blob/main/torchvision/models/efficientnet.py).
This repository contains pre-exported model files optimized for Qualcomm® devices. You can use the [Qualcomm® AI Hub Models](https://github.com/qualcomm/ai-hub-models/blob/v0.60.0/src/qai_hub_models/models/efficientnet_b0) library to export with custom configurations. More details on model performance across various devices, can be found [here](#performance-summary).

Qualcomm AI Hub Models uses [Qualcomm AI Hub Workbench](https://workbench.aihub.qualcomm.com) to compile, profile, and evaluate this model. [Sign up](https://myaccount.qualcomm.com/signup) to run these models on a hosted Qualcomm® device.

## Getting Started
There are two ways to deploy this model on your device:

### Option 1: Download Pre-Exported Models

Below are pre-exported model assets ready for deployment.

| Runtime | Precision | Chipset | SDK Versions | Download |
|---|---|---|---|---|
| ONNX | float | Universal | QAIRT 2.45, ONNX Runtime 1.27.1 | [Download](https://qaihub-public-assets.s3.us-west-2.amazonaws.com/qai-hub-models/models/efficientnet_b0/releases/v0.60.0/efficientnet_b0-onnx-float.zip)
| ONNX | w8a16 | Universal | QAIRT 2.45, ONNX Runtime 1.27.1 | [Download](https://qaihub-public-assets.s3.us-west-2.amazonaws.com/qai-hub-models/models/efficientnet_b0/releases/v0.60.0/efficientnet_b0-onnx-w8a16.zip)
| QNN_DLC | float | Universal | QAIRT 2.45 | [Download](https://qaihub-public-assets.s3.us-west-2.amazonaws.com/qai-hub-models/models/efficientnet_b0/releases/v0.60.0/efficientnet_b0-qnn_dlc-float.zip)
| QNN_DLC | w8a16 | Universal | QAIRT 2.45 | [Download](https://qaihub-public-assets.s3.us-west-2.amazonaws.com/qai-hub-models/models/efficientnet_b0/releases/v0.60.0/efficientnet_b0-qnn_dlc-w8a16.zip)
| TFLITE | float | Universal | QAIRT 2.45 | [Download](https://qaihub-public-assets.s3.us-west-2.amazonaws.com/qai-hub-models/models/efficientnet_b0/releases/v0.60.0/efficientnet_b0-tflite-float.zip)

For more device-specific assets and performance metrics, visit **[EfficientNet-B0 on Qualcomm® AI Hub](https://aihub.qualcomm.com/models/efficientnet_b0)**.


### Option 2: Export with Custom Configurations

Use the [Qualcomm® AI Hub Models](https://github.com/qualcomm/ai-hub-models/blob/v0.60.0/src/qai_hub_models/models/efficientnet_b0) Python library to compile and export the model with your own:
- Custom weights (e.g., fine-tuned checkpoints)
- Custom input shapes
- Target device and runtime configurations

This option is ideal if you need to customize the model beyond the default configuration provided here.

See our repository for [EfficientNet-B0 on GitHub](https://github.com/qualcomm/ai-hub-models/blob/v0.60.0/src/qai_hub_models/models/efficientnet_b0) for usage instructions.

## Model Details

**Model Type:** Model_use_case.image_classification

**Model Stats:**
- Input resolution: 224x224
- Model checkpoint: Imagenet
- Model size (float): 20.1 MB
- Model size (w8a16): 6.99 MB
- Number of parameters: 5.27M

## Performance Summary
| Model | Runtime | Precision | Chipset | Inference Time (ms) | Peak Memory Range (MB) | Primary Compute Unit
|---|---|---|---|---|---|---
| EfficientNet-B0 | ONNX | float | Snapdragon® X2 Elite | 0.652 ms | 2 - 2 MB | NPU
| EfficientNet-B0 | ONNX | float | Snapdragon® X Elite | 1.302 ms | 14 - 14 MB | NPU
| EfficientNet-B0 | ONNX | float | Snapdragon® 8 Gen 3 Mobile | 0.9 ms | 0 - 69 MB | NPU
| EfficientNet-B0 | ONNX | float | Snapdragon® 8 Gen 1 Mobile | 2.881 ms | 1 - 78 MB | NPU
| EfficientNet-B0 | ONNX | float | Qualcomm® Dragonwing™ IQ-8275 | 1.607 ms | 1 - 4 MB | NPU
| EfficientNet-B0 | ONNX | float | Qualcomm® Dragonwing™ QCS8550 (Proxy) | 1.246 ms | 0 - 19 MB | NPU
| EfficientNet-B0 | ONNX | float | Qualcomm® QCS8450 | 2.881 ms | 1 - 78 MB | NPU
| EfficientNet-B0 | ONNX | float | Qualcomm® Dragonwing™ IQ-9075 | 1.626 ms | 1 - 3 MB | NPU
| EfficientNet-B0 | ONNX | float | Qualcomm® Dragonwing™ IQ-X7181 | 1.302 ms | 14 - 14 MB | NPU
| EfficientNet-B0 | ONNX | float | Qualcomm® Dragonwing™ Q-8750 | 0.7 ms | 0 - 37 MB | NPU
| EfficientNet-B0 | ONNX | float | Snapdragon® 8 Elite Mobile | 0.7 ms | 0 - 37 MB | NPU
| EfficientNet-B0 | ONNX | float | Snapdragon® 8 Elite Gen 5 Mobile | 0.552 ms | 0 - 40 MB | NPU
| EfficientNet-B0 | ONNX | w8a16 | Snapdragon® X2 Elite | 0.571 ms | 1 - 1 MB | NPU
| EfficientNet-B0 | ONNX | w8a16 | Snapdragon® X Elite | 1.486 ms | 6 - 6 MB | NPU
| EfficientNet-B0 | ONNX | w8a16 | Snapdragon® 8 Gen 3 Mobile | 0.949 ms | 0 - 82 MB | NPU
| EfficientNet-B0 | ONNX | w8a16 | Snapdragon® 8 Gen 1 Mobile | 1.659 ms | 0 - 83 MB | NPU
| EfficientNet-B0 | ONNX | w8a16 | Qualcomm® Dragonwing™ QCS6490 | 3.816 ms | 0 - 3 MB | NPU
| EfficientNet-B0 | ONNX | w8a16 | Qualcomm® Dragonwing™ IQ-8275 | 1.363 ms | 0 - 4 MB | NPU
| EfficientNet-B0 | ONNX | w8a16 | Qualcomm® Dragonwing™ QCS8550 (Proxy) | 1.425 ms | 0 - 102 MB | NPU
| EfficientNet-B0 | ONNX | w8a16 | Qualcomm® QCS8450 | 1.659 ms | 0 - 83 MB | NPU
| EfficientNet-B0 | ONNX | w8a16 | Qualcomm® Dragonwing™ IQ-9075 | 1.576 ms | 0 - 3 MB | NPU
| EfficientNet-B0 | ONNX | w8a16 | Qualcomm® Dragonwing™ IQ-X7181 | 1.486 ms | 6 - 6 MB | NPU
| EfficientNet-B0 | ONNX | w8a16 | Qualcomm® Dragonwing™ Q-6690 | 5.691 ms | 0 - 65 MB | NPU
| EfficientNet-B0 | ONNX | w8a16 | Qualcomm® Dragonwing™ Q-7790 | 1.444 ms | 2 - 60 MB | NPU
| EfficientNet-B0 | ONNX | w8a16 | Qualcomm® Dragonwing™ Q-8750 | 0.668 ms | 0 - 57 MB | NPU
| EfficientNet-B0 | ONNX | w8a16 | Snapdragon® 8 Elite Mobile | 0.668 ms | 0 - 57 MB | NPU
| EfficientNet-B0 | ONNX | w8a16 | Snapdragon® 8 Elite Gen 5 Mobile | 0.555 ms | 0 - 60 MB | NPU
| EfficientNet-B0 | ONNX | w8a16 | Snapdragon® 7 Gen 4 Mobile | 1.444 ms | 2 - 60 MB | NPU
| EfficientNet-B0 | QNN_DLC | float | Snapdragon® X2 Elite | 0.855 ms | 1 - 1 MB | NPU
| EfficientNet-B0 | QNN_DLC | float | Snapdragon® X Elite | 1.765 ms | 1 - 1 MB | NPU
| EfficientNet-B0 | QNN_DLC | float | Snapdragon® 8 Gen 3 Mobile | 1.065 ms | 0 - 61 MB | NPU
| EfficientNet-B0 | QNN_DLC | float | Snapdragon® 8 Gen 1 Mobile | 3.59 ms | 0 - 73 MB | NPU
| EfficientNet-B0 | QNN_DLC | float | Qualcomm® Dragonwing™ IQ-8275 | 4.906 ms | 1 - 36 MB | NPU
| EfficientNet-B0 | QNN_DLC | float | Qualcomm® Dragonwing™ QCS8550 (Proxy) | 1.563 ms | 0 - 10 MB | NPU
| EfficientNet-B0 | QNN_DLC | float | Qualcomm® SA8775P | 2.015 ms | 1 - 39 MB | NPU
| EfficientNet-B0 | QNN_DLC | float | Qualcomm® SA8650P | 2.015 ms | 1 - 39 MB | NPU
| EfficientNet-B0 | QNN_DLC | float | Qualcomm® SA8255P | 2.015 ms | 1 - 39 MB | NPU
| EfficientNet-B0 | QNN_DLC | float | Qualcomm® QCS8450 | 3.59 ms | 0 - 73 MB | NPU
| EfficientNet-B0 | QNN_DLC | float | Qualcomm® Dragonwing™ IQ-9075 | 1.866 ms | 1 - 3 MB | NPU
| EfficientNet-B0 | QNN_DLC | float | Qualcomm® Dragonwing™ IQ-X7181 | 1.765 ms | 1 - 1 MB | NPU
| EfficientNet-B0 | QNN_DLC | float | Qualcomm® Dragonwing™ Q-8750 | 0.806 ms | 0 - 36 MB | NPU
| EfficientNet-B0 | QNN_DLC | float | Qualcomm® SA7255P | 4.906 ms | 1 - 36 MB | NPU
| EfficientNet-B0 | QNN_DLC | float | Qualcomm® SA8295P | 3.615 ms | 1 - 44 MB | NPU
| EfficientNet-B0 | QNN_DLC | float | Snapdragon® 8 Elite Mobile | 0.806 ms | 0 - 36 MB | NPU
| EfficientNet-B0 | QNN_DLC | float | Snapdragon® 8 Elite Gen 5 Mobile | 0.61 ms | 1 - 38 MB | NPU
| EfficientNet-B0 | QNN_DLC | w8a16 | Snapdragon® X2 Elite | 0.803 ms | 0 - 0 MB | NPU
| EfficientNet-B0 | QNN_DLC | w8a16 | Snapdragon® X Elite | 1.862 ms | 0 - 0 MB | NPU
| EfficientNet-B0 | QNN_DLC | w8a16 | Snapdragon® 8 Gen 3 Mobile | 1.132 ms | 0 - 66 MB | NPU
| EfficientNet-B0 | QNN_DLC | w8a16 | Snapdragon® 8 Gen 1 Mobile | 1.97 ms | 0 - 68 MB | NPU
| EfficientNet-B0 | QNN_DLC | w8a16 | Qualcomm® Dragonwing™ QCS6490 | 5.057 ms | 0 - 2 MB | NPU
| EfficientNet-B0 | QNN_DLC | w8a16 | Qualcomm® Dragonwing™ IQ-8275 | 1.569 ms | 0 - 3 MB | NPU
| EfficientNet-B0 | QNN_DLC | w8a16 | Qualcomm® Dragonwing™ IQ-8275 | 3.281 ms | 0 - 47 MB | NPU
| EfficientNet-B0 | QNN_DLC | w8a16 | Qualcomm® Dragonwing™ QCS8550 (Proxy) | 1.672 ms | 0 - 2 MB | NPU
| EfficientNet-B0 | QNN_DLC | w8a16 | Qualcomm® SA8775P | 1.947 ms | 0 - 52 MB | NPU
| EfficientNet-B0 | QNN_DLC | w8a16 | Qualcomm® SA8650P | 1.947 ms | 0 - 52 MB | NPU
| EfficientNet-B0 | QNN_DLC | w8a16 | Qualcomm® SA8255P | 1.947 ms | 0 - 52 MB | NPU
| EfficientNet-B0 | QNN_DLC | w8a16 | Qualcomm® QCS8450 | 1.97 ms | 0 - 68 MB | NPU
| EfficientNet-B0 | QNN_DLC | w8a16 | Qualcomm® Dragonwing™ IQ-9075 | 1.783 ms | 0 - 2 MB | NPU
| EfficientNet-B0 | QNN_DLC | w8a16 | Qualcomm® Dragonwing™ IQ-X7181 | 1.862 ms | 0 - 0 MB | NPU
| EfficientNet-B0 | QNN_DLC | w8a16 | Qualcomm® Dragonwing™ Q-6690 | 6.469 ms | 0 - 164 MB | NPU
| EfficientNet-B0 | QNN_DLC | w8a16 | Qualcomm® Dragonwing™ Q-7790 | 1.708 ms | 0 - 48 MB | NPU
| EfficientNet-B0 | QNN_DLC | w8a16 | Qualcomm® Dragonwing™ Q-8750 | 0.773 ms | 0 - 46 MB | NPU
| EfficientNet-B0 | QNN_DLC | w8a16 | Qualcomm® SA7255P | 3.281 ms | 0 - 47 MB | NPU
| EfficientNet-B0 | QNN_DLC | w8a16 | Qualcomm® SA8295P | 2.375 ms | 0 - 46 MB | NPU
| EfficientNet-B0 | QNN_DLC | w8a16 | Snapdragon® 8 Elite Mobile | 0.773 ms | 0 - 46 MB | NPU
| EfficientNet-B0 | QNN_DLC | w8a16 | Snapdragon® 8 Elite Gen 5 Mobile | 0.645 ms | 0 - 47 MB | NPU
| EfficientNet-B0 | QNN_DLC | w8a16 | Snapdragon® 7 Gen 4 Mobile | 1.708 ms | 0 - 48 MB | NPU
| EfficientNet-B0 | TFLITE | float | Snapdragon® 8 Gen 3 Mobile | 1.064 ms | 0 - 66 MB | NPU
| EfficientNet-B0 | TFLITE | float | Snapdragon® 8 Gen 1 Mobile | 3.597 ms | 0 - 80 MB | NPU
| EfficientNet-B0 | TFLITE | float | Qualcomm® Dragonwing™ IQ-8275 | 1.796 ms | 0 - 17 MB | NPU
| EfficientNet-B0 | TFLITE | float | Qualcomm® Dragonwing™ IQ-8275 | 4.938 ms | 0 - 41 MB | NPU
| EfficientNet-B0 | TFLITE | float | Qualcomm® Dragonwing™ QCS8550 (Proxy) | 1.539 ms | 0 - 2 MB | NPU
| EfficientNet-B0 | TFLITE | float | Qualcomm® SA8775P | 2.027 ms | 0 - 46 MB | NPU
| EfficientNet-B0 | TFLITE | float | Qualcomm® SA8650P | 2.027 ms | 0 - 46 MB | NPU
| EfficientNet-B0 | TFLITE | float | Qualcomm® SA8255P | 2.027 ms | 0 - 46 MB | NPU
| EfficientNet-B0 | TFLITE | float | Qualcomm® QCS8450 | 3.597 ms | 0 - 80 MB | NPU
| EfficientNet-B0 | TFLITE | float | Qualcomm® Dragonwing™ IQ-9075 | 2.391 ms | 0 - 16 MB | NPU
| EfficientNet-B0 | TFLITE | float | Qualcomm® Dragonwing™ Q-8750 | 0.816 ms | 0 - 41 MB | NPU
| EfficientNet-B0 | TFLITE | float | Qualcomm® SA7255P | 4.938 ms | 0 - 41 MB | NPU
| EfficientNet-B0 | TFLITE | float | Qualcomm® SA8295P | 3.642 ms | 0 - 47 MB | NPU
| EfficientNet-B0 | TFLITE | float | Snapdragon® 8 Elite Mobile | 0.816 ms | 0 - 41 MB | NPU
| EfficientNet-B0 | TFLITE | float | Snapdragon® 8 Elite Gen 5 Mobile | 0.612 ms | 0 - 41 MB | NPU

## License
* The license for the original implementation of EfficientNet-B0 can be found
  [here](https://github.com/pytorch/vision/blob/main/LICENSE).

## References
* [EfficientNet: Rethinking Model Scaling for Convolutional Neural Networks](https://arxiv.org/abs/1905.11946)
* [Source Model Implementation](https://github.com/pytorch/vision/blob/main/torchvision/models/efficientnet.py)

## Community
* Join [our AI Hub Slack community](https://aihub.qualcomm.com/community/slack) to collaborate, post questions and learn more about on-device AI.
* For questions or feedback please [reach out to us](mailto:ai-hub-support@qti.qualcomm.com).