qaihm-bot commited on
Commit
6944de2
·
verified ·
1 Parent(s): 6499dac

See https://github.com/quic/ai-hub-models/releases/v0.46.1 for changelog.

GoogLeNet_float.dlc DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:4e9d9e72dec91ef49b998d59c7c9e4ea7dc25ce25c9cbc4dcd1e34681c295ad3
3
- size 26641100
 
 
 
 
GoogLeNet_float.onnx.zip DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:0ffa17ffe002b1eacb9b6d2f870969470e4a182ec9ee9b48a0046560d16d6829
3
- size 24669163
 
 
 
 
GoogLeNet_float.tflite DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:c93aa9b2954392e63faeeac50130701760bd8cc15f8ddeeccff8dd958ac8dd58
3
- size 26498464
 
 
 
 
GoogLeNet_w8a8.dlc DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:0df65e8bd84ecab01e29567dc0abb03e278f2d067ea76b51713394ff6778cc77
3
- size 7228308
 
 
 
 
GoogLeNet_w8a8.onnx.zip DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:91ab1b99c97315364ee29c2c97b34ac886f70fd672a2186788f082abf85f42db
3
- size 11844806
 
 
 
 
GoogLeNet_w8a8.tflite DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:dee2892dc0b4e4323e3fd83273a0bcb98d7fd54091fac440ed8bfc5c66d4bf31
3
- size 6857976
 
 
 
 
README.md CHANGED
@@ -9,280 +9,131 @@ pipeline_tag: image-classification
9
 
10
  ![](https://qaihub-public-assets.s3.us-west-2.amazonaws.com/qai-hub-models/models/googlenet/web-assets/model_demo.png)
11
 
12
- # GoogLeNet: Optimized for Mobile Deployment
13
- ## Imagenet classifier and general purpose backbone
14
-
15
 
16
  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.
17
 
18
- This model is an implementation of GoogLeNet found [here](https://github.com/pytorch/vision/blob/main/torchvision/models/googlenet.py).
19
-
20
-
21
- This repository provides scripts to run GoogLeNet on Qualcomm® devices.
22
- More details on model performance across various devices, can be found
23
- [here](https://aihub.qualcomm.com/models/googlenet).
24
-
25
-
26
-
27
- ### Model Details
28
-
29
- - **Model Type:** Model_use_case.image_classification
30
- - **Model Stats:**
31
- - Model checkpoint: Imagenet
32
- - Input resolution: 224x224
33
- - Number of parameters: 6.62M
34
- - Model size (float): 25.3 MB
35
- - Model size (w8a8): 6.54 MB
36
-
37
- | Model | Precision | Device | Chipset | Target Runtime | Inference Time (ms) | Peak Memory Range (MB) | Primary Compute Unit | Target Model
38
- |---|---|---|---|---|---|---|---|---|
39
- | GoogLeNet | float | QCS8275 (Proxy) | Qualcomm® QCS8275 (Proxy) | TFLITE | 5.022 ms | 0 - 127 MB | NPU | [GoogLeNet.tflite](https://huggingface.co/qualcomm/GoogLeNet/blob/main/GoogLeNet.tflite) |
40
- | GoogLeNet | float | QCS8275 (Proxy) | Qualcomm® QCS8275 (Proxy) | QNN_DLC | 5.058 ms | 1 - 122 MB | NPU | [GoogLeNet.dlc](https://huggingface.co/qualcomm/GoogLeNet/blob/main/GoogLeNet.dlc) |
41
- | GoogLeNet | float | QCS8450 (Proxy) | Qualcomm® QCS8450 (Proxy) | TFLITE | 1.764 ms | 0 - 151 MB | NPU | [GoogLeNet.tflite](https://huggingface.co/qualcomm/GoogLeNet/blob/main/GoogLeNet.tflite) |
42
- | GoogLeNet | float | QCS8450 (Proxy) | Qualcomm® QCS8450 (Proxy) | QNN_DLC | 1.756 ms | 1 - 143 MB | NPU | [GoogLeNet.dlc](https://huggingface.co/qualcomm/GoogLeNet/blob/main/GoogLeNet.dlc) |
43
- | GoogLeNet | float | QCS8550 (Proxy) | Qualcomm® QCS8550 (Proxy) | TFLITE | 0.839 ms | 0 - 3 MB | NPU | [GoogLeNet.tflite](https://huggingface.co/qualcomm/GoogLeNet/blob/main/GoogLeNet.tflite) |
44
- | GoogLeNet | float | QCS8550 (Proxy) | Qualcomm® QCS8550 (Proxy) | QNN_DLC | 0.838 ms | 1 - 3 MB | NPU | [GoogLeNet.dlc](https://huggingface.co/qualcomm/GoogLeNet/blob/main/GoogLeNet.dlc) |
45
- | GoogLeNet | float | QCS8550 (Proxy) | Qualcomm® QCS8550 (Proxy) | ONNX | 1.098 ms | 0 - 16 MB | NPU | [GoogLeNet.onnx.zip](https://huggingface.co/qualcomm/GoogLeNet/blob/main/GoogLeNet.onnx.zip) |
46
- | GoogLeNet | float | QCS9075 (Proxy) | Qualcomm® QCS9075 (Proxy) | TFLITE | 1.584 ms | 0 - 128 MB | NPU | [GoogLeNet.tflite](https://huggingface.co/qualcomm/GoogLeNet/blob/main/GoogLeNet.tflite) |
47
- | GoogLeNet | float | QCS9075 (Proxy) | Qualcomm® QCS9075 (Proxy) | QNN_DLC | 1.564 ms | 0 - 120 MB | NPU | [GoogLeNet.dlc](https://huggingface.co/qualcomm/GoogLeNet/blob/main/GoogLeNet.dlc) |
48
- | GoogLeNet | float | SA7255P ADP | Qualcomm® SA7255P | TFLITE | 5.022 ms | 0 - 127 MB | NPU | [GoogLeNet.tflite](https://huggingface.co/qualcomm/GoogLeNet/blob/main/GoogLeNet.tflite) |
49
- | GoogLeNet | float | SA7255P ADP | Qualcomm® SA7255P | QNN_DLC | 5.058 ms | 1 - 122 MB | NPU | [GoogLeNet.dlc](https://huggingface.co/qualcomm/GoogLeNet/blob/main/GoogLeNet.dlc) |
50
- | GoogLeNet | float | SA8295P ADP | Qualcomm® SA8295P | TFLITE | 1.815 ms | 0 - 134 MB | NPU | [GoogLeNet.tflite](https://huggingface.co/qualcomm/GoogLeNet/blob/main/GoogLeNet.tflite) |
51
- | GoogLeNet | float | SA8295P ADP | Qualcomm® SA8295P | QNN_DLC | 1.797 ms | 0 - 127 MB | NPU | [GoogLeNet.dlc](https://huggingface.co/qualcomm/GoogLeNet/blob/main/GoogLeNet.dlc) |
52
- | GoogLeNet | float | SA8775P ADP | Qualcomm® SA8775P | TFLITE | 1.584 ms | 0 - 128 MB | NPU | [GoogLeNet.tflite](https://huggingface.co/qualcomm/GoogLeNet/blob/main/GoogLeNet.tflite) |
53
- | GoogLeNet | float | SA8775P ADP | Qualcomm® SA8775P | QNN_DLC | 1.564 ms | 0 - 120 MB | NPU | [GoogLeNet.dlc](https://huggingface.co/qualcomm/GoogLeNet/blob/main/GoogLeNet.dlc) |
54
- | GoogLeNet | float | Samsung Galaxy S24 | Snapdragon® 8 Gen 3 Mobile | TFLITE | 0.58 ms | 0 - 155 MB | NPU | [GoogLeNet.tflite](https://huggingface.co/qualcomm/GoogLeNet/blob/main/GoogLeNet.tflite) |
55
- | GoogLeNet | float | Samsung Galaxy S24 | Snapdragon® 8 Gen 3 Mobile | QNN_DLC | 0.583 ms | 1 - 146 MB | NPU | [GoogLeNet.dlc](https://huggingface.co/qualcomm/GoogLeNet/blob/main/GoogLeNet.dlc) |
56
- | GoogLeNet | float | Samsung Galaxy S24 | Snapdragon® 8 Gen 3 Mobile | ONNX | 0.678 ms | 0 - 118 MB | NPU | [GoogLeNet.onnx.zip](https://huggingface.co/qualcomm/GoogLeNet/blob/main/GoogLeNet.onnx.zip) |
57
- | GoogLeNet | float | Samsung Galaxy S25 | Snapdragon® 8 Elite For Galaxy Mobile | TFLITE | 0.455 ms | 0 - 132 MB | NPU | [GoogLeNet.tflite](https://huggingface.co/qualcomm/GoogLeNet/blob/main/GoogLeNet.tflite) |
58
- | GoogLeNet | float | Samsung Galaxy S25 | Snapdragon® 8 Elite For Galaxy Mobile | QNN_DLC | 0.452 ms | 0 - 124 MB | NPU | [GoogLeNet.dlc](https://huggingface.co/qualcomm/GoogLeNet/blob/main/GoogLeNet.dlc) |
59
- | GoogLeNet | float | Samsung Galaxy S25 | Snapdragon® 8 Elite For Galaxy Mobile | ONNX | 0.57 ms | 0 - 99 MB | NPU | [GoogLeNet.onnx.zip](https://huggingface.co/qualcomm/GoogLeNet/blob/main/GoogLeNet.onnx.zip) |
60
- | GoogLeNet | float | Snapdragon 8 Elite Gen 5 QRD | Snapdragon® 8 Elite Gen 5 Mobile | TFLITE | 0.379 ms | 0 - 131 MB | NPU | [GoogLeNet.tflite](https://huggingface.co/qualcomm/GoogLeNet/blob/main/GoogLeNet.tflite) |
61
- | GoogLeNet | float | Snapdragon 8 Elite Gen 5 QRD | Snapdragon® 8 Elite Gen 5 Mobile | QNN_DLC | 0.382 ms | 0 - 125 MB | NPU | [GoogLeNet.dlc](https://huggingface.co/qualcomm/GoogLeNet/blob/main/GoogLeNet.dlc) |
62
- | GoogLeNet | float | Snapdragon 8 Elite Gen 5 QRD | Snapdragon® 8 Elite Gen 5 Mobile | ONNX | 0.507 ms | 1 - 98 MB | NPU | [GoogLeNet.onnx.zip](https://huggingface.co/qualcomm/GoogLeNet/blob/main/GoogLeNet.onnx.zip) |
63
- | GoogLeNet | float | Snapdragon X Elite CRD | Snapdragon® X Elite | QNN_DLC | 0.994 ms | 1 - 1 MB | NPU | [GoogLeNet.dlc](https://huggingface.co/qualcomm/GoogLeNet/blob/main/GoogLeNet.dlc) |
64
- | GoogLeNet | float | Snapdragon X Elite CRD | Snapdragon® X Elite | ONNX | 1.04 ms | 13 - 13 MB | NPU | [GoogLeNet.onnx.zip](https://huggingface.co/qualcomm/GoogLeNet/blob/main/GoogLeNet.onnx.zip) |
65
- | GoogLeNet | w8a8 | Dragonwing Q-6690 MTP | Qualcomm® QCM6690 | TFLITE | 2.28 ms | 0 - 128 MB | NPU | [GoogLeNet.tflite](https://huggingface.co/qualcomm/GoogLeNet/blob/main/GoogLeNet_w8a8.tflite) |
66
- | GoogLeNet | w8a8 | Dragonwing Q-6690 MTP | Qualcomm® QCM6690 | QNN_DLC | 2.271 ms | 0 - 129 MB | NPU | [GoogLeNet.dlc](https://huggingface.co/qualcomm/GoogLeNet/blob/main/GoogLeNet_w8a8.dlc) |
67
- | GoogLeNet | w8a8 | Dragonwing Q-6690 MTP | Qualcomm® QCM6690 | ONNX | 9.186 ms | 8 - 22 MB | CPU | [GoogLeNet.onnx.zip](https://huggingface.co/qualcomm/GoogLeNet/blob/main/GoogLeNet_w8a8.onnx.zip) |
68
- | GoogLeNet | w8a8 | Dragonwing RB3 Gen 2 Vision Kit | Qualcomm® QCS6490 | TFLITE | 0.969 ms | 0 - 8 MB | NPU | [GoogLeNet.tflite](https://huggingface.co/qualcomm/GoogLeNet/blob/main/GoogLeNet_w8a8.tflite) |
69
- | GoogLeNet | w8a8 | Dragonwing RB3 Gen 2 Vision Kit | Qualcomm® QCS6490 | QNN_DLC | 1.043 ms | 2 - 4 MB | NPU | [GoogLeNet.dlc](https://huggingface.co/qualcomm/GoogLeNet/blob/main/GoogLeNet_w8a8.dlc) |
70
- | GoogLeNet | w8a8 | Dragonwing RB3 Gen 2 Vision Kit | Qualcomm® QCS6490 | ONNX | 13.109 ms | 6 - 19 MB | CPU | [GoogLeNet.onnx.zip](https://huggingface.co/qualcomm/GoogLeNet/blob/main/GoogLeNet_w8a8.onnx.zip) |
71
- | GoogLeNet | w8a8 | QCS8275 (Proxy) | Qualcomm® QCS8275 (Proxy) | TFLITE | 0.846 ms | 0 - 121 MB | NPU | [GoogLeNet.tflite](https://huggingface.co/qualcomm/GoogLeNet/blob/main/GoogLeNet_w8a8.tflite) |
72
- | GoogLeNet | w8a8 | QCS8275 (Proxy) | Qualcomm® QCS8275 (Proxy) | QNN_DLC | 0.805 ms | 0 - 122 MB | NPU | [GoogLeNet.dlc](https://huggingface.co/qualcomm/GoogLeNet/blob/main/GoogLeNet_w8a8.dlc) |
73
- | GoogLeNet | w8a8 | QCS8450 (Proxy) | Qualcomm® QCS8450 (Proxy) | TFLITE | 0.459 ms | 0 - 142 MB | NPU | [GoogLeNet.tflite](https://huggingface.co/qualcomm/GoogLeNet/blob/main/GoogLeNet_w8a8.tflite) |
74
- | GoogLeNet | w8a8 | QCS8450 (Proxy) | Qualcomm® QCS8450 (Proxy) | QNN_DLC | 0.42 ms | 0 - 143 MB | NPU | [GoogLeNet.dlc](https://huggingface.co/qualcomm/GoogLeNet/blob/main/GoogLeNet_w8a8.dlc) |
75
- | GoogLeNet | w8a8 | QCS8550 (Proxy) | Qualcomm® QCS8550 (Proxy) | TFLITE | 0.252 ms | 0 - 4 MB | NPU | [GoogLeNet.tflite](https://huggingface.co/qualcomm/GoogLeNet/blob/main/GoogLeNet_w8a8.tflite) |
76
- | GoogLeNet | w8a8 | QCS8550 (Proxy) | Qualcomm® QCS8550 (Proxy) | QNN_DLC | 0.243 ms | 0 - 4 MB | NPU | [GoogLeNet.dlc](https://huggingface.co/qualcomm/GoogLeNet/blob/main/GoogLeNet_w8a8.dlc) |
77
- | GoogLeNet | w8a8 | QCS8550 (Proxy) | Qualcomm® QCS8550 (Proxy) | ONNX | 0.491 ms | 0 - 9 MB | NPU | [GoogLeNet.onnx.zip](https://huggingface.co/qualcomm/GoogLeNet/blob/main/GoogLeNet_w8a8.onnx.zip) |
78
- | GoogLeNet | w8a8 | QCS9075 (Proxy) | Qualcomm® QCS9075 (Proxy) | TFLITE | 0.438 ms | 0 - 121 MB | NPU | [GoogLeNet.tflite](https://huggingface.co/qualcomm/GoogLeNet/blob/main/GoogLeNet_w8a8.tflite) |
79
- | GoogLeNet | w8a8 | QCS9075 (Proxy) | Qualcomm® QCS9075 (Proxy) | QNN_DLC | 1.513 ms | 0 - 122 MB | NPU | [GoogLeNet.dlc](https://huggingface.co/qualcomm/GoogLeNet/blob/main/GoogLeNet_w8a8.dlc) |
80
- | GoogLeNet | w8a8 | SA7255P ADP | Qualcomm® SA7255P | TFLITE | 0.846 ms | 0 - 121 MB | NPU | [GoogLeNet.tflite](https://huggingface.co/qualcomm/GoogLeNet/blob/main/GoogLeNet_w8a8.tflite) |
81
- | GoogLeNet | w8a8 | SA7255P ADP | Qualcomm® SA7255P | QNN_DLC | 0.805 ms | 0 - 122 MB | NPU | [GoogLeNet.dlc](https://huggingface.co/qualcomm/GoogLeNet/blob/main/GoogLeNet_w8a8.dlc) |
82
- | GoogLeNet | w8a8 | SA8295P ADP | Qualcomm® SA8295P | TFLITE | 0.637 ms | 0 - 128 MB | NPU | [GoogLeNet.tflite](https://huggingface.co/qualcomm/GoogLeNet/blob/main/GoogLeNet_w8a8.tflite) |
83
- | GoogLeNet | w8a8 | SA8295P ADP | Qualcomm® SA8295P | QNN_DLC | 0.614 ms | 0 - 128 MB | NPU | [GoogLeNet.dlc](https://huggingface.co/qualcomm/GoogLeNet/blob/main/GoogLeNet_w8a8.dlc) |
84
- | GoogLeNet | w8a8 | SA8775P ADP | Qualcomm® SA8775P | TFLITE | 0.438 ms | 0 - 121 MB | NPU | [GoogLeNet.tflite](https://huggingface.co/qualcomm/GoogLeNet/blob/main/GoogLeNet_w8a8.tflite) |
85
- | GoogLeNet | w8a8 | SA8775P ADP | Qualcomm® SA8775P | QNN_DLC | 1.513 ms | 0 - 122 MB | NPU | [GoogLeNet.dlc](https://huggingface.co/qualcomm/GoogLeNet/blob/main/GoogLeNet_w8a8.dlc) |
86
- | GoogLeNet | w8a8 | Samsung Galaxy S24 | Snapdragon® 8 Gen 3 Mobile | TFLITE | 0.19 ms | 0 - 145 MB | NPU | [GoogLeNet.tflite](https://huggingface.co/qualcomm/GoogLeNet/blob/main/GoogLeNet_w8a8.tflite) |
87
- | GoogLeNet | w8a8 | Samsung Galaxy S24 | Snapdragon® 8 Gen 3 Mobile | QNN_DLC | 0.182 ms | 0 - 144 MB | NPU | [GoogLeNet.dlc](https://huggingface.co/qualcomm/GoogLeNet/blob/main/GoogLeNet_w8a8.dlc) |
88
- | GoogLeNet | w8a8 | Samsung Galaxy S24 | Snapdragon® 8 Gen 3 Mobile | ONNX | 0.321 ms | 0 - 124 MB | NPU | [GoogLeNet.onnx.zip](https://huggingface.co/qualcomm/GoogLeNet/blob/main/GoogLeNet_w8a8.onnx.zip) |
89
- | GoogLeNet | w8a8 | Samsung Galaxy S25 | Snapdragon® 8 Elite For Galaxy Mobile | TFLITE | 0.153 ms | 0 - 125 MB | NPU | [GoogLeNet.tflite](https://huggingface.co/qualcomm/GoogLeNet/blob/main/GoogLeNet_w8a8.tflite) |
90
- | GoogLeNet | w8a8 | Samsung Galaxy S25 | Snapdragon® 8 Elite For Galaxy Mobile | QNN_DLC | 0.149 ms | 0 - 126 MB | NPU | [GoogLeNet.dlc](https://huggingface.co/qualcomm/GoogLeNet/blob/main/GoogLeNet_w8a8.dlc) |
91
- | GoogLeNet | w8a8 | Samsung Galaxy S25 | Snapdragon® 8 Elite For Galaxy Mobile | ONNX | 0.286 ms | 0 - 103 MB | NPU | [GoogLeNet.onnx.zip](https://huggingface.co/qualcomm/GoogLeNet/blob/main/GoogLeNet_w8a8.onnx.zip) |
92
- | GoogLeNet | w8a8 | Snapdragon 7 Gen 4 QRD | Snapdragon® 7 Gen 4 Mobile | TFLITE | 0.339 ms | 0 - 128 MB | NPU | [GoogLeNet.tflite](https://huggingface.co/qualcomm/GoogLeNet/blob/main/GoogLeNet_w8a8.tflite) |
93
- | GoogLeNet | w8a8 | Snapdragon 7 Gen 4 QRD | Snapdragon® 7 Gen 4 Mobile | QNN_DLC | 0.335 ms | 0 - 129 MB | NPU | [GoogLeNet.dlc](https://huggingface.co/qualcomm/GoogLeNet/blob/main/GoogLeNet_w8a8.dlc) |
94
- | GoogLeNet | w8a8 | Snapdragon 7 Gen 4 QRD | Snapdragon® 7 Gen 4 Mobile | ONNX | 8.674 ms | 8 - 26 MB | CPU | [GoogLeNet.onnx.zip](https://huggingface.co/qualcomm/GoogLeNet/blob/main/GoogLeNet_w8a8.onnx.zip) |
95
- | GoogLeNet | w8a8 | Snapdragon 8 Elite Gen 5 QRD | Snapdragon® 8 Elite Gen 5 Mobile | TFLITE | 0.142 ms | 0 - 125 MB | NPU | [GoogLeNet.tflite](https://huggingface.co/qualcomm/GoogLeNet/blob/main/GoogLeNet_w8a8.tflite) |
96
- | GoogLeNet | w8a8 | Snapdragon 8 Elite Gen 5 QRD | Snapdragon® 8 Elite Gen 5 Mobile | QNN_DLC | 0.137 ms | 0 - 125 MB | NPU | [GoogLeNet.dlc](https://huggingface.co/qualcomm/GoogLeNet/blob/main/GoogLeNet_w8a8.dlc) |
97
- | GoogLeNet | w8a8 | Snapdragon 8 Elite Gen 5 QRD | Snapdragon® 8 Elite Gen 5 Mobile | ONNX | 0.277 ms | 0 - 103 MB | NPU | [GoogLeNet.onnx.zip](https://huggingface.co/qualcomm/GoogLeNet/blob/main/GoogLeNet_w8a8.onnx.zip) |
98
- | GoogLeNet | w8a8 | Snapdragon X Elite CRD | Snapdragon® X Elite | QNN_DLC | 0.356 ms | 0 - 0 MB | NPU | [GoogLeNet.dlc](https://huggingface.co/qualcomm/GoogLeNet/blob/main/GoogLeNet_w8a8.dlc) |
99
- | GoogLeNet | w8a8 | Snapdragon X Elite CRD | Snapdragon® X Elite | ONNX | 0.4 ms | 7 - 7 MB | NPU | [GoogLeNet.onnx.zip](https://huggingface.co/qualcomm/GoogLeNet/blob/main/GoogLeNet_w8a8.onnx.zip) |
100
-
101
-
102
-
103
-
104
- ## Installation
105
-
106
-
107
- Install the package via pip:
108
- ```bash
109
- pip install qai-hub-models
110
- ```
111
-
112
-
113
- ## Configure Qualcomm® AI Hub Workbench to run this model on a cloud-hosted device
114
-
115
- Sign-in to [Qualcomm® AI Hub Workbench](https://workbench.aihub.qualcomm.com/) with your
116
- Qualcomm® ID. Once signed in navigate to `Account -> Settings -> API Token`.
117
-
118
- With this API token, you can configure your client to run models on the cloud
119
- hosted devices.
120
- ```bash
121
- qai-hub configure --api_token API_TOKEN
122
- ```
123
- Navigate to [docs](https://workbench.aihub.qualcomm.com/docs/) for more information.
124
-
125
-
126
-
127
- ## Demo off target
128
-
129
- The package contains a simple end-to-end demo that downloads pre-trained
130
- weights and runs this model on a sample input.
131
-
132
- ```bash
133
- python -m qai_hub_models.models.googlenet.demo
134
- ```
135
-
136
- The above demo runs a reference implementation of pre-processing, model
137
- inference, and post processing.
138
-
139
- **NOTE**: If you want running in a Jupyter Notebook or Google Colab like
140
- environment, please add the following to your cell (instead of the above).
141
- ```
142
- %run -m qai_hub_models.models.googlenet.demo
143
- ```
144
-
145
-
146
- ### Run model on a cloud-hosted device
147
-
148
- In addition to the demo, you can also run the model on a cloud-hosted Qualcomm®
149
- device. This script does the following:
150
- * Performance check on-device on a cloud-hosted device
151
- * Downloads compiled assets that can be deployed on-device for Android.
152
- * Accuracy check between PyTorch and on-device outputs.
153
-
154
- ```bash
155
- python -m qai_hub_models.models.googlenet.export
156
- ```
157
-
158
-
159
-
160
- ## How does this work?
161
-
162
- This [export script](https://aihub.qualcomm.com/models/googlenet/qai_hub_models/models/GoogLeNet/export.py)
163
- leverages [Qualcomm® AI Hub](https://aihub.qualcomm.com/) to optimize, validate, and deploy this model
164
- on-device. Lets go through each step below in detail:
165
-
166
- Step 1: **Compile model for on-device deployment**
167
-
168
- To compile a PyTorch model for on-device deployment, we first trace the model
169
- in memory using the `jit.trace` and then call the `submit_compile_job` API.
170
-
171
- ```python
172
- import torch
173
-
174
- import qai_hub as hub
175
- from qai_hub_models.models.googlenet import Model
176
-
177
- # Load the model
178
- torch_model = Model.from_pretrained()
179
-
180
- # Device
181
- device = hub.Device("Samsung Galaxy S25")
182
-
183
- # Trace model
184
- input_shape = torch_model.get_input_spec()
185
- sample_inputs = torch_model.sample_inputs()
186
-
187
- pt_model = torch.jit.trace(torch_model, [torch.tensor(data[0]) for _, data in sample_inputs.items()])
188
-
189
- # Compile model on a specific device
190
- compile_job = hub.submit_compile_job(
191
- model=pt_model,
192
- device=device,
193
- input_specs=torch_model.get_input_spec(),
194
- )
195
-
196
- # Get target model to run on-device
197
- target_model = compile_job.get_target_model()
198
-
199
- ```
200
-
201
-
202
- Step 2: **Performance profiling on cloud-hosted device**
203
-
204
- After compiling models from step 1. Models can be profiled model on-device using the
205
- `target_model`. Note that this scripts runs the model on a device automatically
206
- provisioned in the cloud. Once the job is submitted, you can navigate to a
207
- provided job URL to view a variety of on-device performance metrics.
208
- ```python
209
- profile_job = hub.submit_profile_job(
210
- model=target_model,
211
- device=device,
212
- )
213
-
214
- ```
215
-
216
- Step 3: **Verify on-device accuracy**
217
-
218
- To verify the accuracy of the model on-device, you can run on-device inference
219
- on sample input data on the same cloud hosted device.
220
- ```python
221
- input_data = torch_model.sample_inputs()
222
- inference_job = hub.submit_inference_job(
223
- model=target_model,
224
- device=device,
225
- inputs=input_data,
226
- )
227
- on_device_output = inference_job.download_output_data()
228
-
229
- ```
230
- With the output of the model, you can compute like PSNR, relative errors or
231
- spot check the output with expected output.
232
-
233
- **Note**: This on-device profiling and inference requires access to Qualcomm®
234
- AI Hub Workbench. [Sign up for access](https://myaccount.qualcomm.com/signup).
235
-
236
-
237
-
238
- ## Run demo on a cloud-hosted device
239
-
240
- You can also run the demo on-device.
241
-
242
- ```bash
243
- python -m qai_hub_models.models.googlenet.demo --eval-mode on-device
244
- ```
245
-
246
- **NOTE**: If you want running in a Jupyter Notebook or Google Colab like
247
- environment, please add the following to your cell (instead of the above).
248
- ```
249
- %run -m qai_hub_models.models.googlenet.demo -- --eval-mode on-device
250
- ```
251
-
252
-
253
- ## Deploying compiled model to Android
254
-
255
-
256
- The models can be deployed using multiple runtimes:
257
- - TensorFlow Lite (`.tflite` export): [This
258
- tutorial](https://www.tensorflow.org/lite/android/quickstart) provides a
259
- guide to deploy the .tflite model in an Android application.
260
-
261
-
262
- - QNN (`.so` export ): This [sample
263
- app](https://docs.qualcomm.com/bundle/publicresource/topics/80-63442-50/sample_app.html)
264
- provides instructions on how to use the `.so` shared library in an Android application.
265
-
266
-
267
- ## View on Qualcomm® AI Hub
268
- Get more details on GoogLeNet's performance across various devices [here](https://aihub.qualcomm.com/models/googlenet).
269
- Explore all available models on [Qualcomm® AI Hub](https://aihub.qualcomm.com/)
270
-
271
 
272
  ## License
273
  * The license for the original implementation of GoogLeNet can be found
274
  [here](https://github.com/pytorch/vision/blob/main/LICENSE).
275
 
276
-
277
-
278
  ## References
279
  * [Going Deeper with Convolutions](https://arxiv.org/abs/1409.4842)
280
  * [Source Model Implementation](https://github.com/pytorch/vision/blob/main/torchvision/models/googlenet.py)
281
 
282
-
283
-
284
  ## Community
285
  * Join [our AI Hub Slack community](https://aihub.qualcomm.com/community/slack) to collaborate, post questions and learn more about on-device AI.
286
  * For questions or feedback please [reach out to us](mailto:ai-hub-support@qti.qualcomm.com).
287
-
288
-
 
9
 
10
  ![](https://qaihub-public-assets.s3.us-west-2.amazonaws.com/qai-hub-models/models/googlenet/web-assets/model_demo.png)
11
 
12
+ # GoogLeNet: Optimized for Qualcomm Devices
 
 
13
 
14
  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.
15
 
16
+ This is based on the implementation of GoogLeNet found [here](https://github.com/pytorch/vision/blob/main/torchvision/models/googlenet.py).
17
+ 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/googlenet) library to export with custom configurations. More details on model performance across various devices, can be found [here](#performance-summary).
18
+
19
+ 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.
20
+
21
+ ## Getting Started
22
+ There are two ways to deploy this model on your device:
23
+
24
+ ### Option 1: Download Pre-Exported Models
25
+
26
+ Below are pre-exported model assets ready for deployment.
27
+
28
+ | Runtime | Precision | Chipset | SDK Versions | Download |
29
+ |---|---|---|---|---|
30
+ | ONNX | float | Universal | QAIRT 2.37, ONNX Runtime 1.23.0 | [Download](https://qaihub-public-assets.s3.us-west-2.amazonaws.com/qai-hub-models/models/googlenet/releases/v0.46.1/googlenet-onnx-float.zip)
31
+ | ONNX | w8a8 | Universal | QAIRT 2.37, ONNX Runtime 1.23.0 | [Download](https://qaihub-public-assets.s3.us-west-2.amazonaws.com/qai-hub-models/models/googlenet/releases/v0.46.1/googlenet-onnx-w8a8.zip)
32
+ | QNN_DLC | float | Universal | QAIRT 2.42 | [Download](https://qaihub-public-assets.s3.us-west-2.amazonaws.com/qai-hub-models/models/googlenet/releases/v0.46.1/googlenet-qnn_dlc-float.zip)
33
+ | QNN_DLC | w8a8 | Universal | QAIRT 2.42 | [Download](https://qaihub-public-assets.s3.us-west-2.amazonaws.com/qai-hub-models/models/googlenet/releases/v0.46.1/googlenet-qnn_dlc-w8a8.zip)
34
+ | TFLITE | float | Universal | QAIRT 2.42, TFLite 2.17.0 | [Download](https://qaihub-public-assets.s3.us-west-2.amazonaws.com/qai-hub-models/models/googlenet/releases/v0.46.1/googlenet-tflite-float.zip)
35
+ | TFLITE | w8a8 | Universal | QAIRT 2.42, TFLite 2.17.0 | [Download](https://qaihub-public-assets.s3.us-west-2.amazonaws.com/qai-hub-models/models/googlenet/releases/v0.46.1/googlenet-tflite-w8a8.zip)
36
+
37
+ For more device-specific assets and performance metrics, visit **[GoogLeNet on Qualcomm® AI Hub](https://aihub.qualcomm.com/models/googlenet)**.
38
+
39
+
40
+ ### Option 2: Export with Custom Configurations
41
+
42
+ Use the [Qualcomm® AI Hub Models](https://github.com/quic/ai-hub-models/blob/main/qai_hub_models/models/googlenet) Python library to compile and export the model with your own:
43
+ - Custom weights (e.g., fine-tuned checkpoints)
44
+ - Custom input shapes
45
+ - Target device and runtime configurations
46
+
47
+ This option is ideal if you need to customize the model beyond the default configuration provided here.
48
+
49
+ See our repository for [GoogLeNet on GitHub](https://github.com/quic/ai-hub-models/blob/main/qai_hub_models/models/googlenet) for usage instructions.
50
+
51
+ ## Model Details
52
+
53
+ **Model Type:** Model_use_case.image_classification
54
+
55
+ **Model Stats:**
56
+ - Model checkpoint: Imagenet
57
+ - Input resolution: 224x224
58
+ - Number of parameters: 6.62M
59
+ - Model size (float): 25.3 MB
60
+ - Model size (w8a8): 6.54 MB
61
+
62
+ ## Performance Summary
63
+ | Model | Runtime | Precision | Chipset | Inference Time (ms) | Peak Memory Range (MB) | Primary Compute Unit
64
+ |---|---|---|---|---|---|---
65
+ | GoogLeNet | ONNX | float | Snapdragon® X Elite | 1.038 ms | 13 - 13 MB | NPU
66
+ | GoogLeNet | ONNX | float | Snapdragon® 8 Gen 3 Mobile | 0.743 ms | 0 - 116 MB | NPU
67
+ | GoogLeNet | ONNX | float | Qualcomm® QCS8550 (Proxy) | 1.054 ms | 0 - 146 MB | NPU
68
+ | GoogLeNet | ONNX | float | Qualcomm® QCS9075 | 1.776 ms | 1 - 3 MB | NPU
69
+ | GoogLeNet | ONNX | float | Snapdragon® 8 Elite For Galaxy Mobile | 0.579 ms | 0 - 98 MB | NPU
70
+ | GoogLeNet | ONNX | float | Snapdragon® 8 Elite Gen 5 Mobile | 0.498 ms | 0 - 97 MB | NPU
71
+ | GoogLeNet | ONNX | w8a8 | Snapdragon® X Elite | 0.418 ms | 7 - 7 MB | NPU
72
+ | GoogLeNet | ONNX | w8a8 | Snapdragon® 8 Gen 3 Mobile | 0.394 ms | 0 - 119 MB | NPU
73
+ | GoogLeNet | ONNX | w8a8 | Qualcomm® QCS6490 | 13.8 ms | 6 - 18 MB | CPU
74
+ | GoogLeNet | ONNX | w8a8 | Qualcomm® QCS8550 (Proxy) | 0.495 ms | 0 - 45 MB | NPU
75
+ | GoogLeNet | ONNX | w8a8 | Qualcomm® QCS9075 | 0.603 ms | 0 - 3 MB | NPU
76
+ | GoogLeNet | ONNX | w8a8 | Qualcomm® QCM6690 | 9.08 ms | 8 - 16 MB | CPU
77
+ | GoogLeNet | ONNX | w8a8 | Snapdragon® 8 Elite For Galaxy Mobile | 0.302 ms | 0 - 103 MB | NPU
78
+ | GoogLeNet | ONNX | w8a8 | Snapdragon® 7 Gen 4 Mobile | 6.951 ms | 7 - 16 MB | CPU
79
+ | GoogLeNet | ONNX | w8a8 | Snapdragon® 8 Elite Gen 5 Mobile | 0.278 ms | 0 - 102 MB | NPU
80
+ | GoogLeNet | QNN_DLC | float | Snapdragon® X Elite | 0.98 ms | 1 - 1 MB | NPU
81
+ | GoogLeNet | QNN_DLC | float | Snapdragon® 8 Gen 3 Mobile | 0.57 ms | 0 - 44 MB | NPU
82
+ | GoogLeNet | QNN_DLC | float | Qualcomm® QCS8275 (Proxy) | 5.024 ms | 1 - 28 MB | NPU
83
+ | GoogLeNet | QNN_DLC | float | Qualcomm® QCS8550 (Proxy) | 0.831 ms | 1 - 2 MB | NPU
84
+ | GoogLeNet | QNN_DLC | float | Qualcomm® SA8775P | 1.533 ms | 1 - 30 MB | NPU
85
+ | GoogLeNet | QNN_DLC | float | Qualcomm® QCS9075 | 1.51 ms | 3 - 5 MB | NPU
86
+ | GoogLeNet | QNN_DLC | float | Qualcomm® QCS8450 (Proxy) | 1.766 ms | 0 - 45 MB | NPU
87
+ | GoogLeNet | QNN_DLC | float | Qualcomm® SA7255P | 5.024 ms | 1 - 28 MB | NPU
88
+ | GoogLeNet | QNN_DLC | float | Qualcomm® SA8295P | 1.796 ms | 0 - 25 MB | NPU
89
+ | GoogLeNet | QNN_DLC | float | Snapdragon® 8 Elite For Galaxy Mobile | 0.466 ms | 0 - 31 MB | NPU
90
+ | GoogLeNet | QNN_DLC | float | Snapdragon® 8 Elite Gen 5 Mobile | 0.377 ms | 1 - 31 MB | NPU
91
+ | GoogLeNet | QNN_DLC | w8a8 | Snapdragon® X Elite | 0.364 ms | 0 - 0 MB | NPU
92
+ | GoogLeNet | QNN_DLC | w8a8 | Snapdragon® 8 Gen 3 Mobile | 0.19 ms | 0 - 41 MB | NPU
93
+ | GoogLeNet | QNN_DLC | w8a8 | Qualcomm® QCS6490 | 1.038 ms | 0 - 2 MB | NPU
94
+ | GoogLeNet | QNN_DLC | w8a8 | Qualcomm® QCS8275 (Proxy) | 0.817 ms | 0 - 27 MB | NPU
95
+ | GoogLeNet | QNN_DLC | w8a8 | Qualcomm® QCS8550 (Proxy) | 0.24 ms | 0 - 2 MB | NPU
96
+ | GoogLeNet | QNN_DLC | w8a8 | Qualcomm® SA8775P | 0.416 ms | 0 - 29 MB | NPU
97
+ | GoogLeNet | QNN_DLC | w8a8 | Qualcomm® QCS9075 | 0.343 ms | 2 - 4 MB | NPU
98
+ | GoogLeNet | QNN_DLC | w8a8 | Qualcomm® QCM6690 | 2.232 ms | 0 - 28 MB | NPU
99
+ | GoogLeNet | QNN_DLC | w8a8 | Qualcomm® QCS8450 (Proxy) | 0.415 ms | 0 - 43 MB | NPU
100
+ | GoogLeNet | QNN_DLC | w8a8 | Qualcomm® SA7255P | 0.817 ms | 0 - 27 MB | NPU
101
+ | GoogLeNet | QNN_DLC | w8a8 | Qualcomm® SA8295P | 0.602 ms | 0 - 25 MB | NPU
102
+ | GoogLeNet | QNN_DLC | w8a8 | Snapdragon® 8 Elite For Galaxy Mobile | 0.167 ms | 0 - 31 MB | NPU
103
+ | GoogLeNet | QNN_DLC | w8a8 | Snapdragon® 7 Gen 4 Mobile | 0.329 ms | 0 - 28 MB | NPU
104
+ | GoogLeNet | QNN_DLC | w8a8 | Snapdragon® 8 Elite Gen 5 Mobile | 0.14 ms | 0 - 30 MB | NPU
105
+ | GoogLeNet | TFLITE | float | Snapdragon® 8 Gen 3 Mobile | 0.565 ms | 0 - 54 MB | NPU
106
+ | GoogLeNet | TFLITE | float | Qualcomm® QCS8275 (Proxy) | 5.047 ms | 0 - 34 MB | NPU
107
+ | GoogLeNet | TFLITE | float | Qualcomm® QCS8550 (Proxy) | 0.846 ms | 0 - 1 MB | NPU
108
+ | GoogLeNet | TFLITE | float | Qualcomm® SA8775P | 1.558 ms | 0 - 38 MB | NPU
109
+ | GoogLeNet | TFLITE | float | Qualcomm® QCS9075 | 1.525 ms | 0 - 16 MB | NPU
110
+ | GoogLeNet | TFLITE | float | Qualcomm® QCS8450 (Proxy) | 1.766 ms | 0 - 56 MB | NPU
111
+ | GoogLeNet | TFLITE | float | Qualcomm® SA7255P | 5.047 ms | 0 - 34 MB | NPU
112
+ | GoogLeNet | TFLITE | float | Qualcomm® SA8295P | 1.822 ms | 0 - 32 MB | NPU
113
+ | GoogLeNet | TFLITE | float | Snapdragon® 8 Elite For Galaxy Mobile | 0.468 ms | 0 - 40 MB | NPU
114
+ | GoogLeNet | TFLITE | float | Snapdragon® 8 Elite Gen 5 Mobile | 0.384 ms | 0 - 38 MB | NPU
115
+ | GoogLeNet | TFLITE | w8a8 | Snapdragon® 8 Gen 3 Mobile | 0.187 ms | 0 - 41 MB | NPU
116
+ | GoogLeNet | TFLITE | w8a8 | Qualcomm® QCS6490 | 0.96 ms | 0 - 8 MB | NPU
117
+ | GoogLeNet | TFLITE | w8a8 | Qualcomm® QCS8275 (Proxy) | 0.846 ms | 0 - 28 MB | NPU
118
+ | GoogLeNet | TFLITE | w8a8 | Qualcomm® QCS8550 (Proxy) | 0.251 ms | 0 - 2 MB | NPU
119
+ | GoogLeNet | TFLITE | w8a8 | Qualcomm® SA8775P | 0.429 ms | 0 - 29 MB | NPU
120
+ | GoogLeNet | TFLITE | w8a8 | Qualcomm® QCS9075 | 0.36 ms | 0 - 9 MB | NPU
121
+ | GoogLeNet | TFLITE | w8a8 | Qualcomm® QCM6690 | 2.227 ms | 0 - 27 MB | NPU
122
+ | GoogLeNet | TFLITE | w8a8 | Qualcomm® QCS8450 (Proxy) | 0.426 ms | 0 - 42 MB | NPU
123
+ | GoogLeNet | TFLITE | w8a8 | Qualcomm® SA7255P | 0.846 ms | 0 - 28 MB | NPU
124
+ | GoogLeNet | TFLITE | w8a8 | Qualcomm® SA8295P | 0.63 ms | 0 - 25 MB | NPU
125
+ | GoogLeNet | TFLITE | w8a8 | Snapdragon® 8 Elite For Galaxy Mobile | 0.175 ms | 0 - 31 MB | NPU
126
+ | GoogLeNet | TFLITE | w8a8 | Snapdragon® 7 Gen 4 Mobile | 0.334 ms | 0 - 27 MB | NPU
127
+ | GoogLeNet | TFLITE | w8a8 | Snapdragon® 8 Elite Gen 5 Mobile | 0.139 ms | 0 - 30 MB | NPU
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
128
 
129
  ## License
130
  * The license for the original implementation of GoogLeNet can be found
131
  [here](https://github.com/pytorch/vision/blob/main/LICENSE).
132
 
 
 
133
  ## References
134
  * [Going Deeper with Convolutions](https://arxiv.org/abs/1409.4842)
135
  * [Source Model Implementation](https://github.com/pytorch/vision/blob/main/torchvision/models/googlenet.py)
136
 
 
 
137
  ## Community
138
  * Join [our AI Hub Slack community](https://aihub.qualcomm.com/community/slack) to collaborate, post questions and learn more about on-device AI.
139
  * For questions or feedback please [reach out to us](mailto:ai-hub-support@qti.qualcomm.com).
 
 
tool-versions.yaml DELETED
@@ -1,4 +0,0 @@
1
- tool_versions:
2
- onnx:
3
- qairt: 2.37.1.250807093845_124904
4
- onnx_runtime: 1.23.0