BEVFormer: Optimized for Qualcomm Devices
Bevformer is a SOTA model of interest to the Auto BU.
This is based on the implementation of BEVFormer 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.51, ONNX Runtime 1.30.0 | Download |
| QNN_DLC | float | Universal | QAIRT 2.51 | Download |
For more device-specific assets and performance metrics, visit BEVFormer 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 BEVFormer on GitHub for usage instructions.
Model Details
Model Type: Model_use_case.driver_assistance
Model Stats:
- Input preprocessing: Images must be ImageNet mean/std normalized before inference; the model does not normalize internally.
- Input resolution: 6 x 3 x 480 x 800
- Model checkpoint: bevformer_tiny_deformable_optimized_exp_86_epoch_24.pth
- Model size: 120 MB
- Number of parameters: 27M
Performance Summary
| Model | Runtime | Precision | Chipset | Inference Time (ms) | Peak Memory Range (MB) | Primary Compute Unit |
|---|---|---|---|---|---|---|
| BEVFormer | ONNX | float | Snapdragon® 8 Elite Gen 5 For Galaxy Mobile | 1153.55 ms | 2 - 765 MB | NPU |
| BEVFormer | ONNX | float | Snapdragon® 8 Elite For Galaxy Mobile | 963.758 ms | 3 - 728 MB | NPU |
| BEVFormer | ONNX | float | Snapdragon® X2 Elite | 1034.993 ms | 29 - 29 MB | NPU |
| BEVFormer | ONNX | float | Snapdragon® X Elite | 1819.658 ms | 49 - 49 MB | NPU |
| BEVFormer | ONNX | float | Snapdragon® 8 Gen 3 Mobile | 1354.737 ms | 0 - 972 MB | NPU |
| BEVFormer | ONNX | float | Snapdragon® 8 Gen 1 Mobile | 2071.913 ms | 32 - 980 MB | NPU |
| BEVFormer | ONNX | float | Qualcomm® Dragonwing™ IQ-8275 | 1451.501 ms | 29 - 62 MB | NPU |
| BEVFormer | ONNX | float | Qualcomm® Dragonwing™ QCS8550 (Proxy) | 1460.714 ms | 0 - 53 MB | NPU |
| BEVFormer | ONNX | float | Qualcomm® QCS8450 | 2071.913 ms | 32 - 980 MB | NPU |
| BEVFormer | ONNX | float | Qualcomm® Dragonwing™ IQ-9075 | 1665.161 ms | 29 - 61 MB | NPU |
| BEVFormer | ONNX | float | Qualcomm® Dragonwing™ IQ-X7181 | 1819.658 ms | 49 - 49 MB | NPU |
| BEVFormer | ONNX | float | Qualcomm® Dragonwing™ Q-8750 | 963.758 ms | 3 - 728 MB | NPU |
| BEVFormer | ONNX | float | Snapdragon® 8 Elite Extreme Gen 6 Mobile | 748.907 ms | 11 - 735 MB | NPU |
| BEVFormer | ONNX | float | Snapdragon® 8 Elite Gen 6 Mobile | 724.841 ms | 27 - 730 MB | NPU |
| BEVFormer | QNN_DLC | float | Snapdragon® 8 Elite Gen 5 For Galaxy Mobile | 1059.589 ms | 18 - 813 MB | NPU |
| BEVFormer | QNN_DLC | float | Snapdragon® 8 Elite For Galaxy Mobile | 891.495 ms | 13 - 747 MB | NPU |
| BEVFormer | QNN_DLC | float | Snapdragon® X2 Elite | 1114.858 ms | 29 - 29 MB | NPU |
| BEVFormer | QNN_DLC | float | Snapdragon® X Elite | 1741.93 ms | 29 - 29 MB | NPU |
| BEVFormer | QNN_DLC | float | Snapdragon® 8 Gen 3 Mobile | 1342.843 ms | 27 - 1002 MB | NPU |
| BEVFormer | QNN_DLC | float | Snapdragon® 8 Gen 1 Mobile | 1921.445 ms | 28 - 981 MB | NPU |
| BEVFormer | QNN_DLC | float | Qualcomm® Dragonwing™ IQ-8275 | 1468.543 ms | 29 - 63 MB | NPU |
| BEVFormer | QNN_DLC | float | Qualcomm® Dragonwing™ QCS8550 (Proxy) | 1483.699 ms | 29 - 32 MB | NPU |
| BEVFormer | QNN_DLC | float | Qualcomm® SA8650P | 2011.958 ms | 26 - 863 MB | NPU |
| BEVFormer | QNN_DLC | float | Qualcomm® SA8255P | 2011.958 ms | 26 - 863 MB | NPU |
| BEVFormer | QNN_DLC | float | Qualcomm® QCS8450 | 1921.445 ms | 28 - 981 MB | NPU |
| BEVFormer | QNN_DLC | float | Qualcomm® Dragonwing™ IQ-9075 | 1651.989 ms | 29 - 63 MB | NPU |
| BEVFormer | QNN_DLC | float | Qualcomm® Dragonwing™ IQ-X7181 | 1741.93 ms | 29 - 29 MB | NPU |
| BEVFormer | QNN_DLC | float | Qualcomm® Dragonwing™ Q-8750 | 891.495 ms | 13 - 747 MB | NPU |
| BEVFormer | QNN_DLC | float | Qualcomm® SA8295P | 1841.885 ms | 26 - 710 MB | NPU |
| BEVFormer | QNN_DLC | float | Snapdragon® 8 Elite Extreme Gen 6 Mobile | 760.986 ms | 29 - 766 MB | NPU |
| BEVFormer | QNN_DLC | float | Snapdragon® 8 Elite Gen 6 Mobile | 668.726 ms | 29 - 774 MB | NPU |
License
- The license for the original implementation of BEVFormer can be found here.
References
- BEVFormer: Learning Bird's-Eye-View Representation from Multi-Camera Images via Spatiotemporal Transformers
- Source Model Implementation
Community
- Join our AI Hub Slack community to collaborate, post questions and learn more about on-device AI.
- For questions or feedback please reach out to us.
