--- library_name: pytorch license: other tags: - backbone - android pipeline_tag: image-classification --- ![](https://qaihub-public-assets.s3.us-west-2.amazonaws.com/qai-hub-models/models/wideresnet50/web-assets/model_demo.png) # WideResNet50: Optimized for Qualcomm Devices WideResNet50 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 WideResNet50 found [here](https://github.com/pytorch/vision/blob/main/torchvision/models/resnet.py). This repository contains pre-exported model files optimized for Qualcomm® devices. You can use the [Qualcomm® AI Hub Models](https://github.com/quic/ai-hub-models/blob/main/qai_hub_models/models/wideresnet50) 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.42, ONNX Runtime 1.24.1 | [Download](https://qaihub-public-assets.s3.us-west-2.amazonaws.com/qai-hub-models/models/wideresnet50/releases/v0.47.0/wideresnet50-onnx-float.zip) | ONNX | w8a8 | Universal | QAIRT 2.42, ONNX Runtime 1.24.1 | [Download](https://qaihub-public-assets.s3.us-west-2.amazonaws.com/qai-hub-models/models/wideresnet50/releases/v0.47.0/wideresnet50-onnx-w8a8.zip) | QNN_DLC | float | Universal | QAIRT 2.43 | [Download](https://qaihub-public-assets.s3.us-west-2.amazonaws.com/qai-hub-models/models/wideresnet50/releases/v0.47.0/wideresnet50-qnn_dlc-float.zip) | QNN_DLC | w8a8 | Universal | QAIRT 2.43 | [Download](https://qaihub-public-assets.s3.us-west-2.amazonaws.com/qai-hub-models/models/wideresnet50/releases/v0.47.0/wideresnet50-qnn_dlc-w8a8.zip) | TFLITE | float | Universal | QAIRT 2.43, TFLite 2.17.0 | [Download](https://qaihub-public-assets.s3.us-west-2.amazonaws.com/qai-hub-models/models/wideresnet50/releases/v0.47.0/wideresnet50-tflite-float.zip) | TFLITE | w8a8 | Universal | QAIRT 2.43, TFLite 2.17.0 | [Download](https://qaihub-public-assets.s3.us-west-2.amazonaws.com/qai-hub-models/models/wideresnet50/releases/v0.47.0/wideresnet50-tflite-w8a8.zip) For more device-specific assets and performance metrics, visit **[WideResNet50 on Qualcomm® AI Hub](https://aihub.qualcomm.com/models/wideresnet50)**. ### Option 2: Export with Custom Configurations Use the [Qualcomm® AI Hub Models](https://github.com/quic/ai-hub-models/blob/main/qai_hub_models/models/wideresnet50) 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 [WideResNet50 on GitHub](https://github.com/quic/ai-hub-models/blob/main/qai_hub_models/models/wideresnet50) for usage instructions. ## Model Details **Model Type:** Model_use_case.image_classification **Model Stats:** - Model checkpoint: Imagenet - Input resolution: 224x224 - Number of parameters: 68.9M - Model size (float): 263 MB - Model size (w8a8): 66.6 MB ## Performance Summary | Model | Runtime | Precision | Chipset | Inference Time (ms) | Peak Memory Range (MB) | Primary Compute Unit |---|---|---|---|---|---|--- | WideResNet50 | ONNX | float | Snapdragon® X Elite | 4.462 ms | 132 - 132 MB | NPU | WideResNet50 | ONNX | float | Snapdragon® 8 Gen 3 Mobile | 3.455 ms | 0 - 224 MB | NPU | WideResNet50 | ONNX | float | Qualcomm® QCS8550 (Proxy) | 4.575 ms | 1 - 3 MB | NPU | WideResNet50 | ONNX | float | Qualcomm® QCS9075 | 6.773 ms | 0 - 4 MB | NPU | WideResNet50 | ONNX | float | Snapdragon® 8 Elite For Galaxy Mobile | 2.819 ms | 0 - 170 MB | NPU | WideResNet50 | ONNX | float | Snapdragon® 8 Elite Gen 5 Mobile | 2.648 ms | 1 - 189 MB | NPU | WideResNet50 | ONNX | float | Snapdragon® X2 Elite | 2.226 ms | 132 - 132 MB | NPU | WideResNet50 | ONNX | w8a8 | Snapdragon® X Elite | 1.804 ms | 66 - 66 MB | NPU | WideResNet50 | ONNX | w8a8 | Snapdragon® 8 Gen 3 Mobile | 1.409 ms | 0 - 131 MB | NPU | WideResNet50 | ONNX | w8a8 | Qualcomm® QCS6490 | 78.505 ms | 10 - 106 MB | CPU | WideResNet50 | ONNX | w8a8 | Qualcomm® QCS8550 (Proxy) | 1.852 ms | 0 - 426 MB | NPU | WideResNet50 | ONNX | w8a8 | Qualcomm® QCS9075 | 1.928 ms | 0 - 3 MB | NPU | WideResNet50 | ONNX | w8a8 | Qualcomm® QCM6690 | 61.216 ms | 0 - 9 MB | CPU | WideResNet50 | ONNX | w8a8 | Snapdragon® 8 Elite For Galaxy Mobile | 1.225 ms | 0 - 52 MB | NPU | WideResNet50 | ONNX | w8a8 | Snapdragon® 7 Gen 4 Mobile | 57.422 ms | 8 - 17 MB | CPU | WideResNet50 | ONNX | w8a8 | Snapdragon® 8 Elite Gen 5 Mobile | 1.152 ms | 0 - 52 MB | NPU | WideResNet50 | ONNX | w8a8 | Snapdragon® X2 Elite | 0.818 ms | 66 - 66 MB | NPU | WideResNet50 | QNN_DLC | float | Snapdragon® X Elite | 4.76 ms | 1 - 1 MB | NPU | WideResNet50 | QNN_DLC | float | Snapdragon® 8 Gen 3 Mobile | 3.67 ms | 0 - 228 MB | NPU | WideResNet50 | QNN_DLC | float | Qualcomm® QCS8275 (Proxy) | 24.578 ms | 1 - 175 MB | NPU | WideResNet50 | QNN_DLC | float | Qualcomm® QCS8550 (Proxy) | 4.873 ms | 1 - 234 MB | NPU | WideResNet50 | QNN_DLC | float | Qualcomm® SA8775P | 7.182 ms | 1 - 170 MB | NPU | WideResNet50 | QNN_DLC | float | Qualcomm® QCS9075 | 7.109 ms | 1 - 3 MB | NPU | WideResNet50 | QNN_DLC | float | Qualcomm® QCS8450 (Proxy) | 9.206 ms | 0 - 197 MB | NPU | WideResNet50 | QNN_DLC | float | Qualcomm® SA7255P | 24.578 ms | 1 - 175 MB | NPU | WideResNet50 | QNN_DLC | float | Qualcomm® SA8295P | 7.883 ms | 1 - 153 MB | NPU | WideResNet50 | QNN_DLC | float | Snapdragon® 8 Elite For Galaxy Mobile | 2.932 ms | 0 - 177 MB | NPU | WideResNet50 | QNN_DLC | float | Snapdragon® 8 Elite Gen 5 Mobile | 2.531 ms | 0 - 171 MB | NPU | WideResNet50 | QNN_DLC | float | Snapdragon® X2 Elite | 2.523 ms | 1 - 1 MB | NPU | WideResNet50 | QNN_DLC | w8a8 | Snapdragon® X Elite | 1.79 ms | 0 - 0 MB | NPU | WideResNet50 | QNN_DLC | w8a8 | Snapdragon® 8 Gen 3 Mobile | 1.413 ms | 93 - 218 MB | NPU | WideResNet50 | QNN_DLC | w8a8 | Qualcomm® QCS6490 | 7.783 ms | 2 - 4 MB | NPU | WideResNet50 | QNN_DLC | w8a8 | Qualcomm® QCS8275 (Proxy) | 3.953 ms | 0 - 51 MB | NPU | WideResNet50 | QNN_DLC | w8a8 | Qualcomm® QCS8550 (Proxy) | 1.866 ms | 0 - 175 MB | NPU | WideResNet50 | QNN_DLC | w8a8 | Qualcomm® SA8775P | 2.004 ms | 0 - 52 MB | NPU | WideResNet50 | QNN_DLC | w8a8 | Qualcomm® QCS9075 | 1.904 ms | 2 - 4 MB | NPU | WideResNet50 | QNN_DLC | w8a8 | Qualcomm® QCM6690 | 18.691 ms | 0 - 212 MB | NPU | WideResNet50 | QNN_DLC | w8a8 | Qualcomm® QCS8450 (Proxy) | 2.536 ms | 0 - 126 MB | NPU | WideResNet50 | QNN_DLC | w8a8 | Qualcomm® SA7255P | 3.953 ms | 0 - 51 MB | NPU | WideResNet50 | QNN_DLC | w8a8 | Qualcomm® SA8295P | 2.755 ms | 0 - 49 MB | NPU | WideResNet50 | QNN_DLC | w8a8 | Snapdragon® 8 Elite For Galaxy Mobile | 1.204 ms | 0 - 53 MB | NPU | WideResNet50 | QNN_DLC | w8a8 | Snapdragon® 7 Gen 4 Mobile | 2.868 ms | 0 - 210 MB | NPU | WideResNet50 | QNN_DLC | w8a8 | Snapdragon® 8 Elite Gen 5 Mobile | 1.082 ms | 0 - 53 MB | NPU | WideResNet50 | QNN_DLC | w8a8 | Snapdragon® X2 Elite | 0.883 ms | 0 - 0 MB | NPU | WideResNet50 | TFLITE | float | Snapdragon® 8 Gen 3 Mobile | 3.779 ms | 0 - 255 MB | NPU | WideResNet50 | TFLITE | float | Qualcomm® QCS8275 (Proxy) | 139.978 ms | 0 - 17 MB | GPU | WideResNet50 | TFLITE | float | Qualcomm® QCS8550 (Proxy) | 4.761 ms | 0 - 163 MB | NPU | WideResNet50 | TFLITE | float | Qualcomm® SA8775P | 7.018 ms | 0 - 116 MB | NPU | WideResNet50 | TFLITE | float | Qualcomm® QCS9075 | 7.072 ms | 0 - 134 MB | NPU | WideResNet50 | TFLITE | float | Qualcomm® QCS8450 (Proxy) | 8.187 ms | 0 - 228 MB | NPU | WideResNet50 | TFLITE | float | Qualcomm® SA7255P | 139.978 ms | 0 - 17 MB | GPU | WideResNet50 | TFLITE | float | Qualcomm® SA8295P | 7.69 ms | 0 - 101 MB | NPU | WideResNet50 | TFLITE | float | Snapdragon® 8 Elite For Galaxy Mobile | 2.852 ms | 0 - 115 MB | NPU | WideResNet50 | TFLITE | float | Snapdragon® 8 Elite Gen 5 Mobile | 2.505 ms | 0 - 117 MB | NPU | WideResNet50 | TFLITE | w8a8 | Snapdragon® 8 Gen 3 Mobile | 1.291 ms | 0 - 128 MB | NPU | WideResNet50 | TFLITE | w8a8 | Qualcomm® QCS6490 | 6.769 ms | 0 - 68 MB | NPU | WideResNet50 | TFLITE | w8a8 | Qualcomm® QCS8275 (Proxy) | 3.725 ms | 0 - 50 MB | NPU | WideResNet50 | TFLITE | w8a8 | Qualcomm® QCS8550 (Proxy) | 1.726 ms | 0 - 2 MB | NPU | WideResNet50 | TFLITE | w8a8 | Qualcomm® SA8775P | 6.516 ms | 0 - 50 MB | NPU | WideResNet50 | TFLITE | w8a8 | Qualcomm® QCS9075 | 1.738 ms | 0 - 68 MB | NPU | WideResNet50 | TFLITE | w8a8 | Qualcomm® QCM6690 | 16.208 ms | 0 - 211 MB | NPU | WideResNet50 | TFLITE | w8a8 | Qualcomm® QCS8450 (Proxy) | 2.399 ms | 0 - 129 MB | NPU | WideResNet50 | TFLITE | w8a8 | Qualcomm® SA7255P | 3.725 ms | 0 - 50 MB | NPU | WideResNet50 | TFLITE | w8a8 | Qualcomm® SA8295P | 2.581 ms | 0 - 48 MB | NPU | WideResNet50 | TFLITE | w8a8 | Snapdragon® 8 Elite For Galaxy Mobile | 1.111 ms | 0 - 54 MB | NPU | WideResNet50 | TFLITE | w8a8 | Snapdragon® 7 Gen 4 Mobile | 2.74 ms | 0 - 205 MB | NPU | WideResNet50 | TFLITE | w8a8 | Snapdragon® 8 Elite Gen 5 Mobile | 1.043 ms | 0 - 52 MB | NPU ## License * The license for the original implementation of WideResNet50 can be found [here](https://github.com/pytorch/vision/blob/main/LICENSE). ## References * [Wide Residual Networks](https://arxiv.org/abs/1605.07146) * [Source Model Implementation](https://github.com/pytorch/vision/blob/main/torchvision/models/resnet.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).