--- library_name: pytorch license: bsd-3-clause 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.66.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.50, ONNX Runtime 1.30.0 | [Download](https://qaihub-public-assets.s3.us-west-2.amazonaws.com/qai-hub-models/models/efficientnet_b0/releases/v0.66.0/efficientnet_b0-onnx-float.zip) | ONNX | w8a16_mixed_int16 | Universal | QAIRT 2.50, ONNX Runtime 1.30.0 | [Download](https://qaihub-public-assets.s3.us-west-2.amazonaws.com/qai-hub-models/models/efficientnet_b0/releases/v0.66.0/efficientnet_b0-onnx-w8a16_mixed_int16.zip) | QNN_DLC | float | Universal | QAIRT 2.50 | [Download](https://qaihub-public-assets.s3.us-west-2.amazonaws.com/qai-hub-models/models/efficientnet_b0/releases/v0.66.0/efficientnet_b0-qnn_dlc-float.zip) | QNN_DLC | w8a16_mixed_int16 | Universal | QAIRT 2.50 | [Download](https://qaihub-public-assets.s3.us-west-2.amazonaws.com/qai-hub-models/models/efficientnet_b0/releases/v0.66.0/efficientnet_b0-qnn_dlc-w8a16_mixed_int16.zip) | TFLITE | float | Universal | QAIRT 2.50 | [Download](https://qaihub-public-assets.s3.us-west-2.amazonaws.com/qai-hub-models/models/efficientnet_b0/releases/v0.66.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.66.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.66.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® 8 Elite Gen 5 For Galaxy Mobile | 0.548 ms | 0 - 42 MB | NPU | EfficientNet-B0 | ONNX | float | Snapdragon® 8 Elite For Galaxy Mobile | 0.702 ms | 0 - 46 MB | NPU | EfficientNet-B0 | ONNX | float | Snapdragon® X2 Elite | 0.662 ms | 2 - 2 MB | NPU | EfficientNet-B0 | ONNX | float | Snapdragon® X Elite | 1.299 ms | 14 - 14 MB | NPU | EfficientNet-B0 | ONNX | float | Snapdragon® 8 Gen 3 Mobile | 0.901 ms | 0 - 69 MB | NPU | EfficientNet-B0 | ONNX | float | Snapdragon® 8 Gen 1 Mobile | 2.773 ms | 1 - 81 MB | NPU | EfficientNet-B0 | ONNX | float | Qualcomm® Dragonwing™ IQ-8275 | 1.606 ms | 1 - 5 MB | NPU | EfficientNet-B0 | ONNX | float | Qualcomm® Dragonwing™ QCS8550 (Proxy) | 1.259 ms | 0 - 15 MB | NPU | EfficientNet-B0 | ONNX | float | Qualcomm® QCS8450 | 2.773 ms | 1 - 81 MB | NPU | EfficientNet-B0 | ONNX | float | Qualcomm® Dragonwing™ IQ-9075 | 1.616 ms | 1 - 4 MB | NPU | EfficientNet-B0 | ONNX | float | Qualcomm® Dragonwing™ IQ-X7181 | 1.299 ms | 14 - 14 MB | NPU | EfficientNet-B0 | ONNX | float | Qualcomm® Dragonwing™ Q-8750 | 0.702 ms | 0 - 46 MB | NPU | EfficientNet-B0 | ONNX | w8a16_mixed_int16 | Snapdragon® 8 Elite Gen 5 For Galaxy Mobile | 0.571 ms | 0 - 63 MB | NPU | EfficientNet-B0 | ONNX | w8a16_mixed_int16 | Snapdragon® 8 Elite For Galaxy Mobile | 0.668 ms | 0 - 63 MB | NPU | EfficientNet-B0 | ONNX | w8a16_mixed_int16 | Snapdragon® X2 Elite | 0.588 ms | 1 - 1 MB | NPU | EfficientNet-B0 | ONNX | w8a16_mixed_int16 | Snapdragon® X Elite | 1.509 ms | 6 - 6 MB | NPU | EfficientNet-B0 | ONNX | w8a16_mixed_int16 | Snapdragon® 8 Gen 3 Mobile | 0.953 ms | 0 - 82 MB | NPU | EfficientNet-B0 | ONNX | w8a16_mixed_int16 | Qualcomm® Dragonwing™ IQ-8275 | 1.398 ms | 0 - 4 MB | NPU | EfficientNet-B0 | ONNX | w8a16_mixed_int16 | Qualcomm® Dragonwing™ QCS8550 (Proxy) | 1.454 ms | 0 - 9 MB | NPU | EfficientNet-B0 | ONNX | w8a16_mixed_int16 | Qualcomm® Dragonwing™ IQ-9075 | 1.614 ms | 0 - 3 MB | NPU | EfficientNet-B0 | ONNX | w8a16_mixed_int16 | Qualcomm® Dragonwing™ IQ-X7181 | 1.509 ms | 6 - 6 MB | NPU | EfficientNet-B0 | ONNX | w8a16_mixed_int16 | Qualcomm® Dragonwing™ Q-6690 | 6.19 ms | 0 - 178 MB | NPU | EfficientNet-B0 | ONNX | w8a16_mixed_int16 | Qualcomm® Dragonwing™ Q-7790 | 1.495 ms | 0 - 63 MB | NPU | EfficientNet-B0 | ONNX | w8a16_mixed_int16 | Qualcomm® Dragonwing™ Q-8750 | 0.668 ms | 0 - 63 MB | NPU | EfficientNet-B0 | ONNX | w8a16_mixed_int16 | Snapdragon® 7 Gen 4 Mobile | 1.495 ms | 0 - 63 MB | NPU | EfficientNet-B0 | QNN_DLC | float | Snapdragon® 8 Elite Gen 5 For Galaxy Mobile | 0.608 ms | 1 - 42 MB | NPU | EfficientNet-B0 | QNN_DLC | float | Snapdragon® 8 Elite For Galaxy Mobile | 0.816 ms | 1 - 44 MB | NPU | EfficientNet-B0 | QNN_DLC | float | Snapdragon® X2 Elite | 0.839 ms | 1 - 1 MB | NPU | EfficientNet-B0 | QNN_DLC | float | Snapdragon® X Elite | 1.729 ms | 1 - 1 MB | NPU | EfficientNet-B0 | QNN_DLC | float | Snapdragon® 8 Gen 3 Mobile | 1.081 ms | 0 - 63 MB | NPU | EfficientNet-B0 | QNN_DLC | float | Snapdragon® 8 Gen 1 Mobile | 3.383 ms | 0 - 76 MB | NPU | EfficientNet-B0 | QNN_DLC | float | Qualcomm® Dragonwing™ IQ-8275 | 1.787 ms | 1 - 4 MB | NPU | EfficientNet-B0 | QNN_DLC | float | Qualcomm® Dragonwing™ QCS8550 (Proxy) | 1.539 ms | 1 - 2 MB | NPU | EfficientNet-B0 | QNN_DLC | float | Qualcomm® QCS8450 | 3.383 ms | 0 - 76 MB | NPU | EfficientNet-B0 | QNN_DLC | float | Qualcomm® Dragonwing™ IQ-9075 | 1.896 ms | 3 - 5 MB | NPU | EfficientNet-B0 | QNN_DLC | float | Qualcomm® Dragonwing™ IQ-X7181 | 1.729 ms | 1 - 1 MB | NPU | EfficientNet-B0 | QNN_DLC | float | Qualcomm® Dragonwing™ Q-8750 | 0.816 ms | 1 - 44 MB | NPU | EfficientNet-B0 | QNN_DLC | float | Qualcomm® SA8295P | 3.458 ms | 0 - 46 MB | NPU | EfficientNet-B0 | QNN_DLC | w8a16_mixed_int16 | Snapdragon® 8 Elite Gen 5 For Galaxy Mobile | 0.641 ms | 0 - 52 MB | NPU | EfficientNet-B0 | QNN_DLC | w8a16_mixed_int16 | Snapdragon® 8 Elite For Galaxy Mobile | 0.782 ms | 0 - 56 MB | NPU | EfficientNet-B0 | QNN_DLC | w8a16_mixed_int16 | Snapdragon® X2 Elite | 0.814 ms | 0 - 0 MB | NPU | EfficientNet-B0 | QNN_DLC | w8a16_mixed_int16 | Snapdragon® X Elite | 1.921 ms | 0 - 0 MB | NPU | EfficientNet-B0 | QNN_DLC | w8a16_mixed_int16 | Snapdragon® 8 Gen 3 Mobile | 1.14 ms | 0 - 72 MB | NPU | EfficientNet-B0 | QNN_DLC | w8a16_mixed_int16 | Qualcomm® Dragonwing™ IQ-8275 | 1.604 ms | 0 - 4 MB | NPU | EfficientNet-B0 | QNN_DLC | w8a16_mixed_int16 | Qualcomm® Dragonwing™ QCS8550 (Proxy) | 1.695 ms | 0 - 2 MB | NPU | EfficientNet-B0 | QNN_DLC | w8a16_mixed_int16 | Qualcomm® SA8775P | 1.981 ms | 0 - 58 MB | NPU | EfficientNet-B0 | QNN_DLC | w8a16_mixed_int16 | Qualcomm® SA8650P | 1.981 ms | 0 - 58 MB | NPU | EfficientNet-B0 | QNN_DLC | w8a16_mixed_int16 | Qualcomm® SA8255P | 1.981 ms | 0 - 58 MB | NPU | EfficientNet-B0 | QNN_DLC | w8a16_mixed_int16 | Qualcomm® Dragonwing™ IQ-9075 | 1.825 ms | 0 - 3 MB | NPU | EfficientNet-B0 | QNN_DLC | w8a16_mixed_int16 | Qualcomm® Dragonwing™ IQ-X7181 | 1.921 ms | 0 - 0 MB | NPU | EfficientNet-B0 | QNN_DLC | w8a16_mixed_int16 | Qualcomm® Dragonwing™ Q-6690 | 7.543 ms | 0 - 167 MB | NPU | EfficientNet-B0 | QNN_DLC | w8a16_mixed_int16 | Qualcomm® Dragonwing™ Q-7790 | 1.755 ms | 0 - 53 MB | NPU | EfficientNet-B0 | QNN_DLC | w8a16_mixed_int16 | Qualcomm® Dragonwing™ Q-8750 | 0.782 ms | 0 - 56 MB | NPU | EfficientNet-B0 | QNN_DLC | w8a16_mixed_int16 | Qualcomm® SA7255P | 3.349 ms | 0 - 53 MB | NPU | EfficientNet-B0 | QNN_DLC | w8a16_mixed_int16 | Snapdragon® 7 Gen 4 Mobile | 1.755 ms | 0 - 53 MB | NPU | EfficientNet-B0 | TFLITE | float | Snapdragon® 8 Elite Gen 5 For Galaxy Mobile | 0.616 ms | 0 - 45 MB | NPU | EfficientNet-B0 | TFLITE | float | Snapdragon® 8 Elite For Galaxy Mobile | 0.817 ms | 0 - 48 MB | NPU | EfficientNet-B0 | TFLITE | float | Snapdragon® 8 Gen 3 Mobile | 1.088 ms | 0 - 70 MB | NPU | EfficientNet-B0 | TFLITE | float | Snapdragon® 8 Gen 1 Mobile | 3.375 ms | 0 - 86 MB | NPU | EfficientNet-B0 | TFLITE | float | Qualcomm® Dragonwing™ IQ-8275 | 1.805 ms | 0 - 17 MB | NPU | EfficientNet-B0 | TFLITE | float | Qualcomm® Dragonwing™ QCS8550 (Proxy) | 1.541 ms | 0 - 77 MB | NPU | EfficientNet-B0 | TFLITE | float | Qualcomm® SA8775P | 5.79 ms | 0 - 28 MB | GPU | EfficientNet-B0 | TFLITE | float | Qualcomm® SA8650P | 5.79 ms | 0 - 28 MB | GPU | EfficientNet-B0 | TFLITE | float | Qualcomm® SA8255P | 5.79 ms | 0 - 28 MB | GPU | EfficientNet-B0 | TFLITE | float | Qualcomm® QCS8450 | 3.375 ms | 0 - 86 MB | NPU | EfficientNet-B0 | TFLITE | float | Qualcomm® Dragonwing™ IQ-9075 | 1.869 ms | 0 - 16 MB | NPU | EfficientNet-B0 | TFLITE | float | Qualcomm® Dragonwing™ Q-8750 | 0.817 ms | 0 - 48 MB | NPU | EfficientNet-B0 | TFLITE | float | Qualcomm® SA7255P | 4.897 ms | 0 - 45 MB | NPU | EfficientNet-B0 | TFLITE | float | Qualcomm® SA8295P | 3.467 ms | 0 - 51 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).