DenseNet-121: Optimized for Qualcomm Devices

Densenet 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 DenseNet-121 found here. This repository contains pre-exported model files optimized for Qualcomm® devices. You can use the Qualcomm® AI Hub Models library to export with custom configurations. More details on model performance across various devices, can be found here.

Qualcomm AI Hub Models uses Qualcomm AI Hub Workbench to compile, profile, and evaluate this model. Sign up 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.25.0 Download
ONNX w8a16 Universal QAIRT 2.45, ONNX Runtime 1.25.0 Download
ONNX w8a8 Universal QAIRT 2.45, ONNX Runtime 1.25.0 Download
QNN_DLC float Universal QAIRT 2.45 Download
QNN_DLC w8a16 Universal QAIRT 2.45 Download
QNN_DLC w8a8 Universal QAIRT 2.45 Download
TFLITE float Universal QAIRT 2.45 Download

For more device-specific assets and performance metrics, visit DenseNet-121 on Qualcomm® AI Hub.

Option 2: Export with Custom Configurations

Use the Qualcomm® AI Hub Models 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 DenseNet-121 on GitHub for usage instructions.

Model Details

Model Type: Model_use_case.image_classification

Model Stats:

  • Model checkpoint: Imagenet
  • Input resolution: 224x224
  • Number of parameters: 7.99M
  • Model size (float): 30.5 MB
  • Model size (w8a16): 8.72 MB
  • Model size (w8a8): 8.30 MB

Performance Summary

Model Runtime Precision Chipset Inference Time (ms) Peak Memory Range (MB) Primary Compute Unit
DenseNet-121 ONNX float Snapdragon® X2 Elite 0.727 ms 212 - 212 MB NPU
DenseNet-121 ONNX float Snapdragon® X Elite 1.589 ms 181 - 181 MB NPU
DenseNet-121 ONNX float Snapdragon® 8 Gen 3 Mobile 1.061 ms 1 - 80 MB NPU
DenseNet-121 ONNX float Snapdragon® 8 Gen 1 Mobile 2.615 ms 1 - 82 MB NPU
DenseNet-121 ONNX float Qualcomm® QCS8550 (Proxy) 1.537 ms 0 - 23 MB NPU
DenseNet-121 ONNX float Qualcomm® QCS8450 2.615 ms 1 - 82 MB NPU
DenseNet-121 ONNX float Snapdragon® 8 Elite Mobile 0.783 ms 0 - 46 MB NPU
DenseNet-121 ONNX float Snapdragon® 8 Elite Gen 5 Mobile 0.661 ms 1 - 41 MB NPU
DenseNet-121 ONNX float Qualcomm® QCS9075 2.612 ms 1 - 46 MB NPU
DenseNet-121 ONNX float Qualcomm® QCS8750 0.783 ms 0 - 46 MB NPU
DenseNet-121 ONNX float Qualcomm® QCS7181 1.589 ms 181 - 181 MB NPU
DenseNet-121 ONNX w8a16 Snapdragon® X2 Elite 1.789 ms 212 - 212 MB NPU
DenseNet-121 ONNX w8a16 Snapdragon® X Elite 2.936 ms 149 - 149 MB NPU
DenseNet-121 ONNX w8a16 Snapdragon® 8 Gen 3 Mobile 2.323 ms 0 - 109 MB NPU
DenseNet-121 ONNX w8a16 Qualcomm® QCS8550 (Proxy) 2.912 ms 0 - 60 MB NPU
DenseNet-121 ONNX w8a16 Snapdragon® 8 Elite Gen 5 Mobile 1.59 ms 0 - 85 MB NPU
DenseNet-121 ONNX w8a16 Snapdragon® 8 Elite Mobile 1.955 ms 0 - 88 MB NPU
DenseNet-121 ONNX w8a16 Qualcomm® QCS9075 3.068 ms 0 - 45 MB NPU
DenseNet-121 ONNX w8a16 Snapdragon® 7 Gen 4 Mobile 3.664 ms 0 - 85 MB NPU
DenseNet-121 ONNX w8a16 Qualcomm® QCM6690 38.282 ms 0 - 201 MB NPU
DenseNet-121 ONNX w8a16 Qualcomm® QCS7790 3.664 ms 0 - 85 MB NPU
DenseNet-121 ONNX w8a16 Qualcomm® QCS8750 1.955 ms 0 - 88 MB NPU
DenseNet-121 ONNX w8a16 Qualcomm® QCS7181 2.936 ms 149 - 149 MB NPU
DenseNet-121 ONNX w8a8 Snapdragon® X2 Elite 0.491 ms 213 - 213 MB NPU
DenseNet-121 ONNX w8a8 Snapdragon® X Elite 0.887 ms 149 - 149 MB NPU
DenseNet-121 ONNX w8a8 Snapdragon® 8 Gen 3 Mobile 0.607 ms 0 - 103 MB NPU
DenseNet-121 ONNX w8a8 Snapdragon® 8 Gen 1 Mobile 1.503 ms 0 - 97 MB NPU
DenseNet-121 ONNX w8a8 Qualcomm® QCS6490 2.89 ms 0 - 45 MB NPU
DenseNet-121 ONNX w8a8 Qualcomm® QCS8550 (Proxy) 0.869 ms 0 - 29 MB NPU
DenseNet-121 ONNX w8a8 Qualcomm® QCS8450 1.503 ms 0 - 97 MB NPU
DenseNet-121 ONNX w8a8 Qualcomm® QCS9075 1.002 ms 0 - 45 MB NPU
DenseNet-121 ONNX w8a8 Snapdragon® 7 Gen 4 Mobile 1.016 ms 0 - 85 MB NPU
DenseNet-121 ONNX w8a8 Snapdragon® 8 Elite Gen 5 Mobile 0.462 ms 0 - 91 MB NPU
DenseNet-121 ONNX w8a8 Snapdragon® 8 Elite Mobile 0.51 ms 0 - 94 MB NPU
DenseNet-121 ONNX w8a8 Qualcomm® QCM6690 7.03 ms 0 - 204 MB NPU
DenseNet-121 ONNX w8a8 Qualcomm® QCS7790 1.016 ms 0 - 85 MB NPU
DenseNet-121 ONNX w8a8 Qualcomm® QCS8750 0.51 ms 0 - 94 MB NPU
DenseNet-121 ONNX w8a8 Qualcomm® QCS7181 0.887 ms 149 - 149 MB NPU
DenseNet-121 QNN_DLC float Snapdragon® X2 Elite 0.916 ms 1 - 1 MB NPU
DenseNet-121 QNN_DLC float Snapdragon® X Elite 2.025 ms 1 - 1 MB NPU
DenseNet-121 QNN_DLC float Snapdragon® 8 Gen 3 Mobile 1.212 ms 0 - 72 MB NPU
DenseNet-121 QNN_DLC float Snapdragon® 8 Gen 1 Mobile 3.288 ms 0 - 75 MB NPU
DenseNet-121 QNN_DLC float Qualcomm® QCS8275 7.91 ms 1 - 37 MB NPU
DenseNet-121 QNN_DLC float Qualcomm® QCS8550 (Proxy) 1.799 ms 1 - 2 MB NPU
DenseNet-121 QNN_DLC float Qualcomm® QCS8450 3.288 ms 0 - 75 MB NPU
DenseNet-121 QNN_DLC float Snapdragon® 8 Elite Mobile 0.881 ms 1 - 38 MB NPU
DenseNet-121 QNN_DLC float Qualcomm® SA7255P 7.91 ms 1 - 37 MB NPU
DenseNet-121 QNN_DLC float Qualcomm® SA8295P 3.073 ms 0 - 36 MB NPU
DenseNet-121 QNN_DLC float Snapdragon® 8 Elite Gen 5 Mobile 0.72 ms 1 - 43 MB NPU
DenseNet-121 QNN_DLC float Qualcomm® QCS9075 2.753 ms 1 - 3 MB NPU
DenseNet-121 QNN_DLC float Qualcomm® QCS8750 0.881 ms 1 - 38 MB NPU
DenseNet-121 QNN_DLC float Qualcomm® QCS7181 2.025 ms 1 - 1 MB NPU
DenseNet-121 QNN_DLC w8a16 Snapdragon® X2 Elite 1.441 ms 0 - 0 MB NPU
DenseNet-121 QNN_DLC w8a16 Snapdragon® X Elite 3.109 ms 0 - 0 MB NPU
DenseNet-121 QNN_DLC w8a16 Snapdragon® 8 Gen 3 Mobile 1.987 ms 0 - 86 MB NPU
DenseNet-121 QNN_DLC w8a16 Snapdragon® 8 Gen 1 Mobile 4.413 ms 0 - 89 MB NPU
DenseNet-121 QNN_DLC w8a16 Qualcomm® QCS8275 5.796 ms 0 - 66 MB NPU
DenseNet-121 QNN_DLC w8a16 Qualcomm® QCS8550 (Proxy) 2.846 ms 0 - 15 MB NPU
DenseNet-121 QNN_DLC w8a16 Qualcomm® QCS8450 4.413 ms 0 - 89 MB NPU
DenseNet-121 QNN_DLC w8a16 Snapdragon® 8 Elite Gen 5 Mobile 1.099 ms 0 - 74 MB NPU
DenseNet-121 QNN_DLC w8a16 Snapdragon® 8 Elite Mobile 1.715 ms 0 - 58 MB NPU
DenseNet-121 QNN_DLC w8a16 Qualcomm® QCS9075 3.33 ms 0 - 2 MB NPU
DenseNet-121 QNN_DLC w8a16 Qualcomm® SA8295P 4.913 ms 0 - 64 MB NPU
DenseNet-121 QNN_DLC w8a16 Qualcomm® SA7255P 5.796 ms 0 - 66 MB NPU
DenseNet-121 QNN_DLC w8a16 Qualcomm® QCS8750 1.715 ms 0 - 58 MB NPU
DenseNet-121 QNN_DLC w8a16 Qualcomm® QCS7181 3.109 ms 0 - 0 MB NPU
DenseNet-121 QNN_DLC w8a8 Snapdragon® X2 Elite 1.141 ms 0 - 0 MB NPU
DenseNet-121 QNN_DLC w8a8 Snapdragon® X Elite 2.638 ms 0 - 0 MB NPU
DenseNet-121 QNN_DLC w8a8 Snapdragon® 8 Gen 3 Mobile 1.686 ms 0 - 81 MB NPU
DenseNet-121 QNN_DLC w8a8 Snapdragon® 8 Gen 1 Mobile 2.868 ms 0 - 83 MB NPU
DenseNet-121 QNN_DLC w8a8 Qualcomm® QCS8275 5.006 ms 0 - 61 MB NPU
DenseNet-121 QNN_DLC w8a8 Qualcomm® QCS8550 (Proxy) 2.388 ms 0 - 10 MB NPU
DenseNet-121 QNN_DLC w8a8 Qualcomm® QCS8450 2.868 ms 0 - 83 MB NPU
DenseNet-121 QNN_DLC w8a8 Qualcomm® QCS9075 2.575 ms 2 - 4 MB NPU
DenseNet-121 QNN_DLC w8a8 Qualcomm® SA7255P 5.006 ms 0 - 61 MB NPU
DenseNet-121 QNN_DLC w8a8 Qualcomm® SA8295P 3.384 ms 0 - 58 MB NPU
DenseNet-121 QNN_DLC w8a8 Snapdragon® 8 Elite Gen 5 Mobile 0.899 ms 0 - 68 MB NPU
DenseNet-121 QNN_DLC w8a8 Snapdragon® 8 Elite Mobile 1.042 ms 0 - 56 MB NPU
DenseNet-121 QNN_DLC w8a8 Qualcomm® QCS8750 1.042 ms 0 - 56 MB NPU
DenseNet-121 QNN_DLC w8a8 Qualcomm® QCS7181 2.638 ms 0 - 0 MB NPU
DenseNet-121 TFLITE float Snapdragon® 8 Gen 3 Mobile 1.2 ms 0 - 85 MB NPU
DenseNet-121 TFLITE float Snapdragon® 8 Gen 1 Mobile 3.283 ms 0 - 86 MB NPU
DenseNet-121 TFLITE float Qualcomm® QCS8275 7.923 ms 0 - 52 MB NPU
DenseNet-121 TFLITE float Qualcomm® QCS8550 (Proxy) 1.827 ms 0 - 12 MB NPU
DenseNet-121 TFLITE float Qualcomm® SA8775P 28.106 ms 0 - 28 MB GPU
DenseNet-121 TFLITE float Qualcomm® SA8650P 28.106 ms 0 - 28 MB GPU
DenseNet-121 TFLITE float Qualcomm® SA8255P 28.106 ms 0 - 28 MB GPU
DenseNet-121 TFLITE float Qualcomm® QCS8450 3.283 ms 0 - 86 MB NPU
DenseNet-121 TFLITE float Snapdragon® 8 Elite Mobile 0.883 ms 0 - 59 MB NPU
DenseNet-121 TFLITE float Qualcomm® SA7255P 7.923 ms 0 - 52 MB NPU
DenseNet-121 TFLITE float Qualcomm® SA8295P 3.051 ms 0 - 49 MB NPU
DenseNet-121 TFLITE float Snapdragon® 8 Elite Gen 5 Mobile 0.721 ms 0 - 55 MB NPU
DenseNet-121 TFLITE float Qualcomm® QCS9075 2.827 ms 0 - 18 MB NPU
DenseNet-121 TFLITE float Qualcomm® QCS8750 0.883 ms 0 - 59 MB NPU

License

  • The license for the original implementation of DenseNet-121 can be found here.

References

Community

Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Paper for qualcomm/DenseNet-121