ResNet-2Plus1D: Optimized for Qualcomm Devices

ResNet (2+1)D Convolutions is a network which explicitly factorizes 3D convolution into two separate and successive operations, a 2D spatial convolution and a 1D temporal convolution. It used for video understanding applications.

This is based on the implementation of ResNet-2Plus1D 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.42, ONNX Runtime 1.24.1 Download
ONNX w8a8 Universal QAIRT 2.42, ONNX Runtime 1.24.1 Download
QNN_DLC float Universal QAIRT 2.43 Download
QNN_DLC w8a8 Universal QAIRT 2.43 Download
TFLITE float Universal QAIRT 2.43, TFLite 2.17.0 Download
TFLITE w8a8 Universal QAIRT 2.43, TFLite 2.17.0 Download

For more device-specific assets and performance metrics, visit ResNet-2Plus1D 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 ResNet-2Plus1D on GitHub for usage instructions.

Model Details

Model Type: Model_use_case.video_classification

Model Stats:

  • Model checkpoint: Kinetics-400
  • Input resolution: 112x112
  • Number of parameters: 31.5M
  • Model size (float): 120 MB
  • Model size (w8a8): 30.8 MB

Performance Summary

Model Runtime Precision Chipset Inference Time (ms) Peak Memory Range (MB) Primary Compute Unit
ResNet-2Plus1D ONNX float Snapdragon® X2 Elite 6.124 ms 60 - 60 MB NPU
ResNet-2Plus1D ONNX float Snapdragon® X Elite 12.21 ms 60 - 60 MB NPU
ResNet-2Plus1D ONNX float Snapdragon® 8 Gen 3 Mobile 9.089 ms 2 - 299 MB NPU
ResNet-2Plus1D ONNX float Qualcomm® QCS8550 (Proxy) 11.895 ms 2 - 6 MB NPU
ResNet-2Plus1D ONNX float Qualcomm® QCS9075 21.365 ms 2 - 7 MB NPU
ResNet-2Plus1D ONNX float Snapdragon® 8 Elite For Galaxy Mobile 7.209 ms 1 - 209 MB NPU
ResNet-2Plus1D ONNX float Snapdragon® 8 Elite Gen 5 Mobile 5.517 ms 2 - 215 MB NPU
ResNet-2Plus1D ONNX w8a8 Snapdragon® X2 Elite 2.043 ms 31 - 31 MB NPU
ResNet-2Plus1D ONNX w8a8 Snapdragon® X Elite 4.534 ms 31 - 31 MB NPU
ResNet-2Plus1D ONNX w8a8 Snapdragon® 8 Gen 3 Mobile 3.272 ms 0 - 226 MB NPU
ResNet-2Plus1D ONNX w8a8 Qualcomm® QCS6490 316.388 ms 97 - 127 MB CPU
ResNet-2Plus1D ONNX w8a8 Qualcomm® QCS8550 (Proxy) 4.281 ms 0 - 4 MB NPU
ResNet-2Plus1D ONNX w8a8 Qualcomm® QCS9075 4.11 ms 1 - 3 MB NPU
ResNet-2Plus1D ONNX w8a8 Qualcomm® QCM6690 302.389 ms 100 - 107 MB CPU
ResNet-2Plus1D ONNX w8a8 Snapdragon® 8 Elite For Galaxy Mobile 2.585 ms 0 - 189 MB NPU
ResNet-2Plus1D ONNX w8a8 Snapdragon® 7 Gen 4 Mobile 272.625 ms 76 - 83 MB CPU
ResNet-2Plus1D ONNX w8a8 Snapdragon® 8 Elite Gen 5 Mobile 1.927 ms 0 - 191 MB NPU
ResNet-2Plus1D QNN_DLC float Snapdragon® X2 Elite 6.638 ms 2 - 2 MB NPU
ResNet-2Plus1D QNN_DLC float Snapdragon® X Elite 13.02 ms 2 - 2 MB NPU
ResNet-2Plus1D QNN_DLC float Snapdragon® 8 Gen 3 Mobile 9.235 ms 2 - 306 MB NPU
ResNet-2Plus1D QNN_DLC float Qualcomm® QCS8275 (Proxy) 81.816 ms 1 - 216 MB NPU
ResNet-2Plus1D QNN_DLC float Qualcomm® QCS8550 (Proxy) 12.731 ms 2 - 4 MB NPU
ResNet-2Plus1D QNN_DLC float Qualcomm® SA8775P 97.866 ms 1 - 216 MB NPU
ResNet-2Plus1D QNN_DLC float Qualcomm® QCS9075 23.009 ms 2 - 6 MB NPU
ResNet-2Plus1D QNN_DLC float Qualcomm® QCS8450 (Proxy) 28.935 ms 0 - 277 MB NPU
ResNet-2Plus1D QNN_DLC float Qualcomm® SA7255P 81.816 ms 1 - 216 MB NPU
ResNet-2Plus1D QNN_DLC float Qualcomm® SA8295P 22.709 ms 2 - 200 MB NPU
ResNet-2Plus1D QNN_DLC float Snapdragon® 8 Elite For Galaxy Mobile 7.193 ms 2 - 220 MB NPU
ResNet-2Plus1D QNN_DLC float Snapdragon® 8 Elite Gen 5 Mobile 5.713 ms 2 - 228 MB NPU
ResNet-2Plus1D QNN_DLC w8a8 Snapdragon® X2 Elite 2.353 ms 1 - 1 MB NPU
ResNet-2Plus1D QNN_DLC w8a8 Snapdragon® X Elite 4.908 ms 1 - 1 MB NPU
ResNet-2Plus1D QNN_DLC w8a8 Snapdragon® 8 Gen 3 Mobile 3.351 ms 1 - 221 MB NPU
ResNet-2Plus1D QNN_DLC w8a8 Qualcomm® QCS6490 19.708 ms 1 - 3 MB NPU
ResNet-2Plus1D QNN_DLC w8a8 Qualcomm® QCS8275 (Proxy) 13.289 ms 1 - 181 MB NPU
ResNet-2Plus1D QNN_DLC w8a8 Qualcomm® QCS8550 (Proxy) 4.569 ms 1 - 35 MB NPU
ResNet-2Plus1D QNN_DLC w8a8 Qualcomm® SA8775P 4.719 ms 1 - 184 MB NPU
ResNet-2Plus1D QNN_DLC w8a8 Qualcomm® QCS9075 4.799 ms 1 - 3 MB NPU
ResNet-2Plus1D QNN_DLC w8a8 Qualcomm® QCM6690 80.776 ms 1 - 197 MB NPU
ResNet-2Plus1D QNN_DLC w8a8 Qualcomm® QCS8450 (Proxy) 7.449 ms 1 - 220 MB NPU
ResNet-2Plus1D QNN_DLC w8a8 Qualcomm® SA7255P 13.289 ms 1 - 181 MB NPU
ResNet-2Plus1D QNN_DLC w8a8 Qualcomm® SA8295P 7.754 ms 1 - 182 MB NPU
ResNet-2Plus1D QNN_DLC w8a8 Snapdragon® 8 Elite For Galaxy Mobile 2.551 ms 0 - 180 MB NPU
ResNet-2Plus1D QNN_DLC w8a8 Snapdragon® 7 Gen 4 Mobile 7.892 ms 1 - 189 MB NPU
ResNet-2Plus1D QNN_DLC w8a8 Snapdragon® 8 Elite Gen 5 Mobile 1.875 ms 1 - 183 MB NPU
ResNet-2Plus1D TFLITE float Snapdragon® 8 Gen 3 Mobile 291.042 ms 0 - 322 MB NPU
ResNet-2Plus1D TFLITE float Qualcomm® QCS8275 (Proxy) 721.71 ms 0 - 234 MB NPU
ResNet-2Plus1D TFLITE float Qualcomm® QCS8550 (Proxy) 405.106 ms 0 - 2 MB NPU
ResNet-2Plus1D TFLITE float Qualcomm® SA8775P 381.207 ms 0 - 233 MB NPU
ResNet-2Plus1D TFLITE float Qualcomm® QCS9075 386.763 ms 0 - 66 MB NPU
ResNet-2Plus1D TFLITE float Qualcomm® QCS8450 (Proxy) 444.981 ms 1 - 316 MB NPU
ResNet-2Plus1D TFLITE float Qualcomm® SA7255P 721.71 ms 0 - 234 MB NPU
ResNet-2Plus1D TFLITE float Qualcomm® SA8295P 472.01 ms 0 - 228 MB NPU
ResNet-2Plus1D TFLITE float Snapdragon® 8 Elite For Galaxy Mobile 255.496 ms 0 - 238 MB NPU
ResNet-2Plus1D TFLITE float Snapdragon® 8 Elite Gen 5 Mobile 263.545 ms 0 - 244 MB NPU
ResNet-2Plus1D TFLITE w8a8 Snapdragon® 8 Gen 3 Mobile 583.224 ms 0 - 538 MB NPU
ResNet-2Plus1D TFLITE w8a8 Qualcomm® QCS8275 (Proxy) 1514.71 ms 0 - 443 MB NPU
ResNet-2Plus1D TFLITE w8a8 Qualcomm® QCS8550 (Proxy) 801.769 ms 0 - 2 MB NPU
ResNet-2Plus1D TFLITE w8a8 Qualcomm® SA8775P 792.575 ms 0 - 442 MB NPU
ResNet-2Plus1D TFLITE w8a8 Qualcomm® QCM6690 1613.517 ms 311 - 479 MB NPU
ResNet-2Plus1D TFLITE w8a8 Qualcomm® QCS8450 (Proxy) 861.146 ms 0 - 432 MB NPU
ResNet-2Plus1D TFLITE w8a8 Qualcomm® SA7255P 1514.71 ms 0 - 443 MB NPU
ResNet-2Plus1D TFLITE w8a8 Qualcomm® SA8295P 874.473 ms 0 - 433 MB NPU
ResNet-2Plus1D TFLITE w8a8 Snapdragon® 8 Elite For Galaxy Mobile 493.662 ms 0 - 522 MB NPU
ResNet-2Plus1D TFLITE w8a8 Snapdragon® 8 Elite Gen 5 Mobile 609.566 ms 0 - 471 MB NPU

License

  • The license for the original implementation of ResNet-2Plus1D 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/ResNet-2Plus1D