Yolo-v4: Optimized for Qualcomm Devices
YoloV4 is a machine learning model that predicts bounding boxes and classes of objects in an image.
This is based on the implementation of Yolo-v4 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
Due to licensing restrictions, we cannot distribute pre-exported model assets for this model. 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
See our repository for Yolo-v4 on GitHub for usage instructions.
Model Details
Model Type: Model_use_case.object_detection
Model Stats:
- Input resolution: 416x416
- Model checkpoint: YoloV4 Tiny
- Model size (float): 23.1 MB
- Model size (w8a16): 6.07 MB
- Number of parameters: 6.06M
Performance Summary
| Model | Runtime | Precision | Chipset | Inference Time (ms) | Peak Memory Range (MB) | Primary Compute Unit |
|---|---|---|---|---|---|---|
| Yolo-v4 | ONNX | float | Snapdragon® 8 Elite Gen 5 For Galaxy Mobile | 0.789 ms | 0 - 29 MB | NPU |
| Yolo-v4 | ONNX | float | Snapdragon® 8 Elite For Galaxy Mobile | 0.971 ms | 0 - 33 MB | NPU |
| Yolo-v4 | ONNX | float | Snapdragon® X2 Elite | 0.909 ms | 2 - 2 MB | NPU |
| Yolo-v4 | ONNX | float | Snapdragon® X Elite | 1.804 ms | 10 - 10 MB | NPU |
| Yolo-v4 | ONNX | float | Snapdragon® 8 Gen 3 Mobile | 1.27 ms | 0 - 43 MB | NPU |
| Yolo-v4 | ONNX | float | Snapdragon® 8 Gen 1 Mobile | 2.787 ms | 2 - 51 MB | NPU |
| Yolo-v4 | ONNX | float | Qualcomm® Dragonwing™ IQ-8275 | 2.721 ms | 2 - 6 MB | NPU |
| Yolo-v4 | ONNX | float | Qualcomm® Dragonwing™ QCS8550 (Proxy) | 1.763 ms | 0 - 13 MB | NPU |
| Yolo-v4 | ONNX | float | Qualcomm® QCS8450 | 2.787 ms | 2 - 51 MB | NPU |
| Yolo-v4 | ONNX | float | Qualcomm® Dragonwing™ IQ-9075 | 2.538 ms | 2 - 6 MB | NPU |
| Yolo-v4 | ONNX | float | Qualcomm® Dragonwing™ IQ-X7181 | 1.804 ms | 10 - 10 MB | NPU |
| Yolo-v4 | ONNX | float | Qualcomm® Dragonwing™ Q-8750 | 0.971 ms | 0 - 33 MB | NPU |
| Yolo-v4 | ONNX | float | Snapdragon® 8 Elite Extreme Gen 6 Mobile | 0.697 ms | 0 - 30 MB | NPU |
| Yolo-v4 | ONNX | float | Snapdragon® 8 Elite Gen 6 Mobile | 0.822 ms | 0 - 28 MB | NPU |
| Yolo-v4 | ONNX | w8a16 | Snapdragon® 8 Elite Gen 5 For Galaxy Mobile | 0.575 ms | 0 - 36 MB | NPU |
| Yolo-v4 | ONNX | w8a16 | Snapdragon® 8 Elite For Galaxy Mobile | 0.738 ms | 0 - 40 MB | NPU |
| Yolo-v4 | ONNX | w8a16 | Snapdragon® X2 Elite | 0.669 ms | 2 - 2 MB | NPU |
| Yolo-v4 | ONNX | w8a16 | Snapdragon® X Elite | 1.449 ms | 6 - 6 MB | NPU |
| Yolo-v4 | ONNX | w8a16 | Snapdragon® 8 Gen 3 Mobile | 0.987 ms | 0 - 56 MB | NPU |
| Yolo-v4 | ONNX | w8a16 | Snapdragon® 8 Gen 1 Mobile | 2.023 ms | 0 - 63 MB | NPU |
| Yolo-v4 | ONNX | w8a16 | Qualcomm® Dragonwing™ QCS6490 | 14.713 ms | 17 - 20 MB | NPU |
| Yolo-v4 | ONNX | w8a16 | Qualcomm® Dragonwing™ IQ-8275 | 1.312 ms | 0 - 4 MB | NPU |
| Yolo-v4 | ONNX | w8a16 | Qualcomm® Dragonwing™ QCS8550 (Proxy) | 1.385 ms | 0 - 2 MB | NPU |
| Yolo-v4 | ONNX | w8a16 | Qualcomm® QCS8450 | 2.023 ms | 0 - 63 MB | NPU |
| Yolo-v4 | ONNX | w8a16 | Qualcomm® Dragonwing™ IQ-9075 | 1.373 ms | 0 - 4 MB | NPU |
| Yolo-v4 | ONNX | w8a16 | Qualcomm® Dragonwing™ IQ-X7181 | 1.449 ms | 6 - 6 MB | NPU |
| Yolo-v4 | ONNX | w8a16 | Qualcomm® Dragonwing™ Q-6690 | 17.066 ms | 6 - 158 MB | NPU |
| Yolo-v4 | ONNX | w8a16 | Qualcomm® Dragonwing™ Q-7790 | 4.379 ms | 17 - 161 MB | NPU |
| Yolo-v4 | ONNX | w8a16 | Qualcomm® Dragonwing™ Q-8750 | 0.738 ms | 0 - 40 MB | NPU |
| Yolo-v4 | ONNX | w8a16 | Snapdragon® 7 Gen 4 Mobile | 4.379 ms | 17 - 161 MB | NPU |
| Yolo-v4 | ONNX | w8a16 | Snapdragon® 8 Elite Extreme Gen 6 Mobile | 0.504 ms | 0 - 40 MB | NPU |
| Yolo-v4 | ONNX | w8a16 | Snapdragon® 8 Elite Gen 6 Mobile | 0.594 ms | 0 - 35 MB | NPU |
| Yolo-v4 | QNN_DLC | float | Snapdragon® 8 Elite Gen 5 For Galaxy Mobile | 0.685 ms | 1 - 31 MB | NPU |
| Yolo-v4 | QNN_DLC | float | Snapdragon® 8 Elite For Galaxy Mobile | 0.852 ms | 2 - 29 MB | NPU |
| Yolo-v4 | QNN_DLC | float | Snapdragon® X2 Elite | 0.945 ms | 2 - 2 MB | NPU |
| Yolo-v4 | QNN_DLC | float | Snapdragon® X Elite | 1.714 ms | 2 - 2 MB | NPU |
| Yolo-v4 | QNN_DLC | float | Snapdragon® 8 Gen 3 Mobile | 1.118 ms | 1 - 41 MB | NPU |
| Yolo-v4 | QNN_DLC | float | Snapdragon® 8 Gen 1 Mobile | 2.229 ms | 0 - 44 MB | NPU |
| Yolo-v4 | QNN_DLC | float | Qualcomm® Dragonwing™ IQ-8275 | 2.48 ms | 2 - 7 MB | NPU |
| Yolo-v4 | QNN_DLC | float | Qualcomm® Dragonwing™ QCS8550 (Proxy) | 1.522 ms | 2 - 3 MB | NPU |
| Yolo-v4 | QNN_DLC | float | Qualcomm® QCS8450 | 2.229 ms | 0 - 44 MB | NPU |
| Yolo-v4 | QNN_DLC | float | Qualcomm® Dragonwing™ IQ-9075 | 2.241 ms | 2 - 6 MB | NPU |
| Yolo-v4 | QNN_DLC | float | Qualcomm® Dragonwing™ IQ-X7181 | 1.714 ms | 2 - 2 MB | NPU |
| Yolo-v4 | QNN_DLC | float | Qualcomm® Dragonwing™ Q-8750 | 0.852 ms | 2 - 29 MB | NPU |
| Yolo-v4 | QNN_DLC | float | Qualcomm® SA8295P | 2.628 ms | 0 - 27 MB | NPU |
| Yolo-v4 | QNN_DLC | float | Snapdragon® 8 Elite Extreme Gen 6 Mobile | 0.636 ms | 0 - 28 MB | NPU |
| Yolo-v4 | QNN_DLC | float | Snapdragon® 8 Elite Gen 6 Mobile | 0.735 ms | 0 - 27 MB | NPU |
| Yolo-v4 | QNN_DLC | w8a16 | Snapdragon® 8 Elite Gen 5 For Galaxy Mobile | 0.478 ms | 0 - 33 MB | NPU |
| Yolo-v4 | QNN_DLC | w8a16 | Snapdragon® 8 Elite For Galaxy Mobile | 0.634 ms | 1 - 32 MB | NPU |
| Yolo-v4 | QNN_DLC | w8a16 | Snapdragon® X2 Elite | 0.736 ms | 1 - 1 MB | NPU |
| Yolo-v4 | QNN_DLC | w8a16 | Snapdragon® X Elite | 1.225 ms | 1 - 1 MB | NPU |
| Yolo-v4 | QNN_DLC | w8a16 | Snapdragon® 8 Gen 3 Mobile | 0.826 ms | 0 - 50 MB | NPU |
| Yolo-v4 | QNN_DLC | w8a16 | Snapdragon® 8 Gen 1 Mobile | 1.472 ms | 0 - 59 MB | NPU |
| Yolo-v4 | QNN_DLC | w8a16 | Qualcomm® Dragonwing™ QCS6490 | 3.916 ms | 1 - 4 MB | NPU |
| Yolo-v4 | QNN_DLC | w8a16 | Qualcomm® Dragonwing™ IQ-8275 | 1.112 ms | 0 - 4 MB | NPU |
| Yolo-v4 | QNN_DLC | w8a16 | Qualcomm® Dragonwing™ QCS8550 (Proxy) | 1.054 ms | 1 - 3 MB | NPU |
| Yolo-v4 | QNN_DLC | w8a16 | Qualcomm® SA8650P | 1.292 ms | 1 - 36 MB | NPU |
| Yolo-v4 | QNN_DLC | w8a16 | Qualcomm® SA8255P | 1.292 ms | 1 - 36 MB | NPU |
| Yolo-v4 | QNN_DLC | w8a16 | Qualcomm® QCS8450 | 1.472 ms | 0 - 59 MB | NPU |
| Yolo-v4 | QNN_DLC | w8a16 | Qualcomm® Dragonwing™ IQ-9075 | 1.075 ms | 0 - 4 MB | NPU |
| Yolo-v4 | QNN_DLC | w8a16 | Qualcomm® Dragonwing™ IQ-X7181 | 1.225 ms | 1 - 1 MB | NPU |
| Yolo-v4 | QNN_DLC | w8a16 | Qualcomm® Dragonwing™ Q-6690 | 11.904 ms | 1 - 143 MB | NPU |
| Yolo-v4 | QNN_DLC | w8a16 | Qualcomm® Dragonwing™ Q-7790 | 1.416 ms | 0 - 38 MB | NPU |
| Yolo-v4 | QNN_DLC | w8a16 | Qualcomm® Dragonwing™ Q-8750 | 0.634 ms | 1 - 32 MB | NPU |
| Yolo-v4 | QNN_DLC | w8a16 | Qualcomm® SA7255P | 3.344 ms | 1 - 32 MB | NPU |
| Yolo-v4 | QNN_DLC | w8a16 | Qualcomm® SA8295P | 1.754 ms | 0 - 32 MB | NPU |
| Yolo-v4 | QNN_DLC | w8a16 | Snapdragon® 7 Gen 4 Mobile | 1.416 ms | 0 - 38 MB | NPU |
| Yolo-v4 | QNN_DLC | w8a16 | Snapdragon® 8 Elite Extreme Gen 6 Mobile | 0.428 ms | 0 - 32 MB | NPU |
| Yolo-v4 | QNN_DLC | w8a16 | Snapdragon® 8 Elite Gen 6 Mobile | 0.456 ms | 0 - 31 MB | NPU |
| Yolo-v4 | TFLITE | float | Snapdragon® 8 Elite Gen 5 For Galaxy Mobile | 0.69 ms | 0 - 31 MB | NPU |
| Yolo-v4 | TFLITE | float | Snapdragon® 8 Elite For Galaxy Mobile | 0.862 ms | 0 - 31 MB | NPU |
| Yolo-v4 | TFLITE | float | Snapdragon® 8 Gen 3 Mobile | 1.135 ms | 0 - 51 MB | NPU |
| Yolo-v4 | TFLITE | float | Snapdragon® 8 Gen 1 Mobile | 2.314 ms | 0 - 60 MB | NPU |
| Yolo-v4 | TFLITE | float | Qualcomm® Dragonwing™ IQ-8275 | 2.517 ms | 0 - 17 MB | NPU |
| Yolo-v4 | TFLITE | float | Qualcomm® Dragonwing™ QCS8550 (Proxy) | 1.518 ms | 0 - 4 MB | NPU |
| Yolo-v4 | TFLITE | float | Qualcomm® SA8775P | 18.356 ms | 2 - 25 MB | GPU |
| Yolo-v4 | TFLITE | float | Qualcomm® SA8650P | 18.356 ms | 2 - 25 MB | GPU |
| Yolo-v4 | TFLITE | float | Qualcomm® SA8255P | 18.356 ms | 2 - 25 MB | GPU |
| Yolo-v4 | TFLITE | float | Qualcomm® QCS8450 | 2.314 ms | 0 - 60 MB | NPU |
| Yolo-v4 | TFLITE | float | Qualcomm® Dragonwing™ IQ-9075 | 2.264 ms | 0 - 16 MB | NPU |
| Yolo-v4 | TFLITE | float | Qualcomm® Dragonwing™ Q-8750 | 0.862 ms | 0 - 31 MB | NPU |
| Yolo-v4 | TFLITE | float | Qualcomm® SA7255P | 42.385 ms | 2 - 25 MB | GPU |
| Yolo-v4 | TFLITE | float | Qualcomm® SA8295P | 2.633 ms | 0 - 30 MB | NPU |
| Yolo-v4 | TFLITE | float | Snapdragon® 8 Elite Extreme Gen 6 Mobile | 0.627 ms | 0 - 31 MB | NPU |
| Yolo-v4 | TFLITE | float | Snapdragon® 8 Elite Gen 6 Mobile | 0.753 ms | 0 - 30 MB | NPU |
License
- The license for the original implementation of Yolo-v4 can be found here.
References
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.
