Image Classification
PyTorch
android
File size: 12,428 Bytes
b888ea4
 
56af4a1
b888ea4
 
9866705
b888ea4
 
 
9c339bf
b888ea4
6944de2
2a24d39
b888ea4
 
6944de2
3649fda
6944de2
 
 
 
 
 
 
 
 
 
 
 
3649fda
 
 
 
 
 
6944de2
 
 
 
 
 
3649fda
6944de2
 
 
 
 
 
3649fda
6944de2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3649fda
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6f34bc5
 
 
3649fda
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6f34bc5
3649fda
 
 
 
 
 
 
 
 
 
 
6f34bc5
3649fda
 
 
 
 
 
fdf3e6e
b888ea4
40f7460
 
fdf3e6e
b888ea4
 
 
 
 
ce9c00b
b888ea4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
---
library_name: pytorch
license: other
tags:
- android
pipeline_tag: image-classification

---

![](https://qaihub-public-assets.s3.us-west-2.amazonaws.com/qai-hub-models/models/googlenet/web-assets/model_demo.png)

# GoogLeNet: Optimized for Qualcomm Devices

GoogLeNet 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 GoogLeNet found [here](https://github.com/pytorch/vision/blob/main/torchvision/models/googlenet.py).
This repository contains pre-exported model files optimized for Qualcomm® devices. You can use the [Qualcomm® AI Hub Models](https://github.com/qualcomm/ai-hub-models/blob/v0.59.0/src/qai_hub_models/models/googlenet) 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.45, ONNX Runtime 1.27.1 | [Download](https://qaihub-public-assets.s3.us-west-2.amazonaws.com/qai-hub-models/models/googlenet/releases/v0.59.0/googlenet-onnx-float.zip)
| ONNX | w8a8 | Universal | QAIRT 2.45, ONNX Runtime 1.27.1 | [Download](https://qaihub-public-assets.s3.us-west-2.amazonaws.com/qai-hub-models/models/googlenet/releases/v0.59.0/googlenet-onnx-w8a8.zip)
| QNN_DLC | float | Universal | QAIRT 2.45 | [Download](https://qaihub-public-assets.s3.us-west-2.amazonaws.com/qai-hub-models/models/googlenet/releases/v0.59.0/googlenet-qnn_dlc-float.zip)
| QNN_DLC | w8a8 | Universal | QAIRT 2.45 | [Download](https://qaihub-public-assets.s3.us-west-2.amazonaws.com/qai-hub-models/models/googlenet/releases/v0.59.0/googlenet-qnn_dlc-w8a8.zip)
| TFLITE | float | Universal | QAIRT 2.45 | [Download](https://qaihub-public-assets.s3.us-west-2.amazonaws.com/qai-hub-models/models/googlenet/releases/v0.59.0/googlenet-tflite-float.zip)
| TFLITE | w8a8 | Universal | QAIRT 2.45 | [Download](https://qaihub-public-assets.s3.us-west-2.amazonaws.com/qai-hub-models/models/googlenet/releases/v0.59.0/googlenet-tflite-w8a8.zip)

For more device-specific assets and performance metrics, visit **[GoogLeNet on Qualcomm® AI Hub](https://aihub.qualcomm.com/models/googlenet)**.


### Option 2: Export with Custom Configurations

Use the [Qualcomm® AI Hub Models](https://github.com/qualcomm/ai-hub-models/blob/v0.59.0/src/qai_hub_models/models/googlenet) 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 [GoogLeNet on GitHub](https://github.com/qualcomm/ai-hub-models/blob/v0.59.0/src/qai_hub_models/models/googlenet) for usage instructions.

## Model Details

**Model Type:** Model_use_case.image_classification

**Model Stats:**
- Model checkpoint: Imagenet
- Input resolution: 224x224
- Number of parameters: 6.62M
- Model size (float): 25.3 MB
- Model size (w8a8): 6.54 MB

## Performance Summary
| Model | Runtime | Precision | Chipset | Inference Time (ms) | Peak Memory Range (MB) | Primary Compute Unit
|---|---|---|---|---|---|---
| GoogLeNet | ONNX | float | Snapdragon® X2 Elite | 0.408 ms | 2 - 2 MB | NPU
| GoogLeNet | ONNX | float | Snapdragon® X Elite | 0.866 ms | 13 - 13 MB | NPU
| GoogLeNet | ONNX | float | Snapdragon® 8 Gen 3 Mobile | 0.566 ms | 0 - 50 MB | NPU
| GoogLeNet | ONNX | float | Snapdragon® 8 Gen 1 Mobile | 1.578 ms | 1 - 51 MB | NPU
| GoogLeNet | ONNX | float | Qualcomm® Dragonwing™ QCS8550 (Proxy) | 0.84 ms | 0 - 15 MB | NPU
| GoogLeNet | ONNX | float | Qualcomm® QCS8450 | 1.578 ms | 1 - 51 MB | NPU
| GoogLeNet | ONNX | float | Qualcomm® Dragonwing™ IQ-9075 | 1.488 ms | 1 - 3 MB | NPU
| GoogLeNet | ONNX | float | Qualcomm® Dragonwing™ IQ-X7181 | 0.866 ms | 13 - 13 MB | NPU
| GoogLeNet | ONNX | float | Qualcomm® Dragonwing™ Q-8750 | 0.467 ms | 0 - 31 MB | NPU
| GoogLeNet | ONNX | float | Snapdragon® 8 Elite Mobile | 0.467 ms | 0 - 31 MB | NPU
| GoogLeNet | ONNX | float | Snapdragon® 8 Elite Gen 5 Mobile | 0.395 ms | 0 - 26 MB | NPU
| GoogLeNet | ONNX | w8a8 | Snapdragon® X2 Elite | 0.184 ms | 1 - 1 MB | NPU
| GoogLeNet | ONNX | w8a8 | Snapdragon® X Elite | 0.296 ms | 7 - 7 MB | NPU
| GoogLeNet | ONNX | w8a8 | Snapdragon® 8 Gen 3 Mobile | 0.217 ms | 0 - 52 MB | NPU
| GoogLeNet | ONNX | w8a8 | Snapdragon® 8 Gen 1 Mobile | 0.482 ms | 0 - 56 MB | NPU
| GoogLeNet | ONNX | w8a8 | Qualcomm® Dragonwing™ QCS6490 | 1.295 ms | 0 - 3 MB | NPU
| GoogLeNet | ONNX | w8a8 | Qualcomm® Dragonwing™ QCS8550 (Proxy) | 0.308 ms | 0 - 9 MB | NPU
| GoogLeNet | ONNX | w8a8 | Qualcomm® QCS8450 | 0.482 ms | 0 - 56 MB | NPU
| GoogLeNet | ONNX | w8a8 | Qualcomm® Dragonwing™ IQ-9075 | 0.425 ms | 0 - 3 MB | NPU
| GoogLeNet | ONNX | w8a8 | Qualcomm® Dragonwing™ IQ-X7181 | 0.296 ms | 7 - 7 MB | NPU
| GoogLeNet | ONNX | w8a8 | Qualcomm® Dragonwing™ Q-8750 | 0.199 ms | 0 - 35 MB | NPU
| GoogLeNet | ONNX | w8a8 | Snapdragon® 8 Elite Mobile | 0.199 ms | 0 - 35 MB | NPU
| GoogLeNet | ONNX | w8a8 | Snapdragon® 8 Elite Gen 5 Mobile | 0.18 ms | 0 - 34 MB | NPU
| GoogLeNet | QNN_DLC | float | Snapdragon® X2 Elite | 0.494 ms | 1 - 1 MB | NPU
| GoogLeNet | QNN_DLC | float | Snapdragon® X Elite | 0.978 ms | 1 - 1 MB | NPU
| GoogLeNet | QNN_DLC | float | Snapdragon® 8 Gen 3 Mobile | 0.564 ms | 0 - 47 MB | NPU
| GoogLeNet | QNN_DLC | float | Snapdragon® 8 Gen 1 Mobile | 1.748 ms | 0 - 45 MB | NPU
| GoogLeNet | QNN_DLC | float | Qualcomm® Dragonwing™ QCS8275 | 5.012 ms | 1 - 26 MB | NPU
| GoogLeNet | QNN_DLC | float | Qualcomm® Dragonwing™ QCS8550 (Proxy) | 0.813 ms | 1 - 2 MB | NPU
| GoogLeNet | QNN_DLC | float | Qualcomm® SA8775P | 1.545 ms | 1 - 28 MB | NPU
| GoogLeNet | QNN_DLC | float | Qualcomm® SA8650P | 1.545 ms | 1 - 28 MB | NPU
| GoogLeNet | QNN_DLC | float | Qualcomm® SA8255P | 1.545 ms | 1 - 28 MB | NPU
| GoogLeNet | QNN_DLC | float | Qualcomm® QCS8450 | 1.748 ms | 0 - 45 MB | NPU
| GoogLeNet | QNN_DLC | float | Qualcomm® Dragonwing™ IQ-9075 | 1.414 ms | 1 - 3 MB | NPU
| GoogLeNet | QNN_DLC | float | Qualcomm® Dragonwing™ IQ-X7181 | 0.978 ms | 1 - 1 MB | NPU
| GoogLeNet | QNN_DLC | float | Qualcomm® Dragonwing™ Q-8750 | 0.453 ms | 1 - 32 MB | NPU
| GoogLeNet | QNN_DLC | float | Qualcomm® SA7255P | 5.012 ms | 1 - 26 MB | NPU
| GoogLeNet | QNN_DLC | float | Qualcomm® SA8295P | 1.778 ms | 0 - 24 MB | NPU
| GoogLeNet | QNN_DLC | float | Snapdragon® 8 Elite Mobile | 0.453 ms | 1 - 32 MB | NPU
| GoogLeNet | QNN_DLC | float | Snapdragon® 8 Elite Gen 5 Mobile | 0.379 ms | 0 - 28 MB | NPU
| GoogLeNet | QNN_DLC | w8a8 | Snapdragon® X2 Elite | 0.251 ms | 0 - 0 MB | NPU
| GoogLeNet | QNN_DLC | w8a8 | Snapdragon® X Elite | 0.335 ms | 0 - 0 MB | NPU
| GoogLeNet | QNN_DLC | w8a8 | Snapdragon® 8 Gen 3 Mobile | 0.175 ms | 0 - 45 MB | NPU
| GoogLeNet | QNN_DLC | w8a8 | Snapdragon® 8 Gen 1 Mobile | 0.415 ms | 0 - 51 MB | NPU
| GoogLeNet | QNN_DLC | w8a8 | Qualcomm® Dragonwing™ QCS6490 | 1.178 ms | 0 - 2 MB | NPU
| GoogLeNet | QNN_DLC | w8a8 | Qualcomm® Dragonwing™ QCS8275 | 0.818 ms | 0 - 30 MB | NPU
| GoogLeNet | QNN_DLC | w8a8 | Qualcomm® Dragonwing™ QCS8550 (Proxy) | 0.243 ms | 0 - 7 MB | NPU
| GoogLeNet | QNN_DLC | w8a8 | Qualcomm® SA8775P | 0.412 ms | 0 - 31 MB | NPU
| GoogLeNet | QNN_DLC | w8a8 | Qualcomm® SA8650P | 0.412 ms | 0 - 31 MB | NPU
| GoogLeNet | QNN_DLC | w8a8 | Qualcomm® SA8255P | 0.412 ms | 0 - 31 MB | NPU
| GoogLeNet | QNN_DLC | w8a8 | Qualcomm® QCS8450 | 0.415 ms | 0 - 51 MB | NPU
| GoogLeNet | QNN_DLC | w8a8 | Qualcomm® Dragonwing™ IQ-9075 | 0.312 ms | 0 - 2 MB | NPU
| GoogLeNet | QNN_DLC | w8a8 | Qualcomm® Dragonwing™ IQ-X7181 | 0.335 ms | 0 - 0 MB | NPU
| GoogLeNet | QNN_DLC | w8a8 | Qualcomm® Dragonwing™ Q-6690 | 2.369 ms | 0 - 32 MB | NPU
| GoogLeNet | QNN_DLC | w8a8 | Qualcomm® Dragonwing™ Q-7790 | 0.329 ms | 0 - 31 MB | NPU
| GoogLeNet | QNN_DLC | w8a8 | Qualcomm® Dragonwing™ Q-8750 | 0.152 ms | 0 - 30 MB | NPU
| GoogLeNet | QNN_DLC | w8a8 | Qualcomm® SA7255P | 0.818 ms | 0 - 30 MB | NPU
| GoogLeNet | QNN_DLC | w8a8 | Qualcomm® SA8295P | 0.625 ms | 0 - 27 MB | NPU
| GoogLeNet | QNN_DLC | w8a8 | Snapdragon® 8 Elite Mobile | 0.152 ms | 0 - 30 MB | NPU
| GoogLeNet | QNN_DLC | w8a8 | Snapdragon® 8 Elite Gen 5 Mobile | 0.143 ms | 0 - 29 MB | NPU
| GoogLeNet | QNN_DLC | w8a8 | Snapdragon® 7 Gen 4 Mobile | 0.329 ms | 0 - 31 MB | NPU
| GoogLeNet | TFLITE | float | Snapdragon® 8 Gen 3 Mobile | 0.567 ms | 0 - 57 MB | NPU
| GoogLeNet | TFLITE | float | Snapdragon® 8 Gen 1 Mobile | 1.76 ms | 0 - 62 MB | NPU
| GoogLeNet | TFLITE | float | Qualcomm® Dragonwing™ QCS8275 | 5.029 ms | 0 - 33 MB | NPU
| GoogLeNet | TFLITE | float | Qualcomm® Dragonwing™ QCS8550 (Proxy) | 0.819 ms | 0 - 6 MB | NPU
| GoogLeNet | TFLITE | float | Qualcomm® SA8775P | 1.558 ms | 0 - 36 MB | NPU
| GoogLeNet | TFLITE | float | Qualcomm® SA8650P | 1.558 ms | 0 - 36 MB | NPU
| GoogLeNet | TFLITE | float | Qualcomm® SA8255P | 1.558 ms | 0 - 36 MB | NPU
| GoogLeNet | TFLITE | float | Qualcomm® QCS8450 | 1.76 ms | 0 - 62 MB | NPU
| GoogLeNet | TFLITE | float | Qualcomm® Dragonwing™ IQ-9075 | 1.429 ms | 0 - 16 MB | NPU
| GoogLeNet | TFLITE | float | Qualcomm® Dragonwing™ Q-8750 | 0.457 ms | 0 - 34 MB | NPU
| GoogLeNet | TFLITE | float | Qualcomm® SA7255P | 5.029 ms | 0 - 33 MB | NPU
| GoogLeNet | TFLITE | float | Qualcomm® SA8295P | 1.807 ms | 0 - 31 MB | NPU
| GoogLeNet | TFLITE | float | Snapdragon® 8 Elite Mobile | 0.457 ms | 0 - 34 MB | NPU
| GoogLeNet | TFLITE | float | Snapdragon® 8 Elite Gen 5 Mobile | 0.378 ms | 0 - 34 MB | NPU
| GoogLeNet | TFLITE | w8a8 | Snapdragon® 8 Gen 3 Mobile | 0.193 ms | 0 - 44 MB | NPU
| GoogLeNet | TFLITE | w8a8 | Snapdragon® 8 Gen 1 Mobile | 0.416 ms | 0 - 50 MB | NPU
| GoogLeNet | TFLITE | w8a8 | Qualcomm® Dragonwing™ QCS6490 | 1.002 ms | 0 - 8 MB | NPU
| GoogLeNet | TFLITE | w8a8 | Qualcomm® Dragonwing™ QCS8275 | 0.821 ms | 0 - 28 MB | NPU
| GoogLeNet | TFLITE | w8a8 | Qualcomm® Dragonwing™ QCS8550 (Proxy) | 0.235 ms | 0 - 3 MB | NPU
| GoogLeNet | TFLITE | w8a8 | Qualcomm® SA8775P | 0.429 ms | 0 - 30 MB | NPU
| GoogLeNet | TFLITE | w8a8 | Qualcomm® SA8650P | 0.429 ms | 0 - 30 MB | NPU
| GoogLeNet | TFLITE | w8a8 | Qualcomm® SA8255P | 0.429 ms | 0 - 30 MB | NPU
| GoogLeNet | TFLITE | w8a8 | Qualcomm® QCS8450 | 0.416 ms | 0 - 50 MB | NPU
| GoogLeNet | TFLITE | w8a8 | Qualcomm® Dragonwing™ IQ-9075 | 0.329 ms | 0 - 9 MB | NPU
| GoogLeNet | TFLITE | w8a8 | Qualcomm® Dragonwing™ Q-6690 | 2.252 ms | 0 - 29 MB | NPU
| GoogLeNet | TFLITE | w8a8 | Qualcomm® Dragonwing™ Q-7790 | 0.329 ms | 0 - 29 MB | NPU
| GoogLeNet | TFLITE | w8a8 | Qualcomm® Dragonwing™ Q-8750 | 0.156 ms | 0 - 28 MB | NPU
| GoogLeNet | TFLITE | w8a8 | Qualcomm® SA7255P | 0.821 ms | 0 - 28 MB | NPU
| GoogLeNet | TFLITE | w8a8 | Qualcomm® SA8295P | 0.615 ms | 0 - 26 MB | NPU
| GoogLeNet | TFLITE | w8a8 | Snapdragon® 8 Elite Mobile | 0.156 ms | 0 - 28 MB | NPU
| GoogLeNet | TFLITE | w8a8 | Snapdragon® 8 Elite Gen 5 Mobile | 0.145 ms | 0 - 29 MB | NPU
| GoogLeNet | TFLITE | w8a8 | Snapdragon® 7 Gen 4 Mobile | 0.329 ms | 0 - 29 MB | NPU

## License
* The license for the original implementation of GoogLeNet can be found
  [here](https://github.com/pytorch/vision/blob/main/LICENSE).

## References
* [Going Deeper with Convolutions](https://arxiv.org/abs/1409.4842)
* [Source Model Implementation](https://github.com/pytorch/vision/blob/main/torchvision/models/googlenet.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).