Image Segmentation
PyTorch
android
qaihm-bot commited on
Commit
e6c7751
·
verified ·
1 Parent(s): 821c906

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

FCN-ResNet50_float.dlc DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:c6b5ad83000b9f33aeb7819db5beff5803344521e4e24761664a09e7e57b9f2f
3
- size 131870892
 
 
 
 
FCN-ResNet50_float.onnx.zip DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:7b0a02dd4b0b79a8f430b673a2fe798d06d9839582ee7ebffae46e7a2dad62df
3
- size 122760952
 
 
 
 
FCN-ResNet50_float.tflite DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:e08b8a8bbf73f5460707db57d3646ca26f4a2462479af4d3648e58f027ea8cc9
3
- size 131749232
 
 
 
 
FCN-ResNet50_w8a8.dlc DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:8ec6bf9a19f3f5b208daa760146072d19178ec6f1ff64cfa6b563cef75416083
3
- size 34686708
 
 
 
 
FCN-ResNet50_w8a8.onnx.zip DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:474182ada4a49746d6b6b0778613244f75b15324eba759ce6c713fd7c1e34adb
3
- size 57477822
 
 
 
 
FCN-ResNet50_w8a8.tflite DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:266ec390ae25e28fd171cfc74217f3023a4de75b16e592195dbcb2eb9657f331
3
- size 33736896
 
 
 
 
README.md CHANGED
@@ -9,281 +9,132 @@ pipeline_tag: image-segmentation
9
 
10
  ![](https://qaihub-public-assets.s3.us-west-2.amazonaws.com/qai-hub-models/models/fcn_resnet50/web-assets/model_demo.png)
11
 
12
- # FCN-ResNet50: Optimized for Mobile Deployment
13
- ## Fully-convolutional network model for image segmentation
14
-
15
 
16
  FCN_ResNet50 is a machine learning model that can segment images from the COCO dataset. It uses ResNet50 as a backbone.
17
 
18
- This model is an implementation of FCN-ResNet50 found [here](https://github.com/pytorch/vision/blob/main/torchvision/models/segmentation/fcn.py).
19
-
20
-
21
- This repository provides scripts to run FCN-ResNet50 on Qualcomm® devices.
22
- More details on model performance across various devices, can be found
23
- [here](https://aihub.qualcomm.com/models/fcn_resnet50).
24
-
25
-
26
-
27
- ### Model Details
28
-
29
- - **Model Type:** Model_use_case.semantic_segmentation
30
- - **Model Stats:**
31
- - Model checkpoint: COCO_WITH_VOC_LABELS_V1
32
- - Input resolution: 224x224
33
- - Number of output classes: 21
34
- - Number of parameters: 33.0M
35
- - Model size (float): 126 MB
36
- - Model size (w8a8): 32.2 MB
37
-
38
- | Model | Precision | Device | Chipset | Target Runtime | Inference Time (ms) | Peak Memory Range (MB) | Primary Compute Unit | Target Model
39
- |---|---|---|---|---|---|---|---|---|
40
- | FCN-ResNet50 | float | QCS8275 (Proxy) | Qualcomm® QCS8275 (Proxy) | TFLITE | 270.53 ms | 1 - 292 MB | NPU | [FCN-ResNet50.tflite](https://huggingface.co/qualcomm/FCN-ResNet50/blob/main/FCN-ResNet50.tflite) |
41
- | FCN-ResNet50 | float | QCS8275 (Proxy) | Qualcomm® QCS8275 (Proxy) | QNN_DLC | 271.274 ms | 3 - 266 MB | NPU | [FCN-ResNet50.dlc](https://huggingface.co/qualcomm/FCN-ResNet50/blob/main/FCN-ResNet50.dlc) |
42
- | FCN-ResNet50 | float | QCS8450 (Proxy) | Qualcomm® QCS8450 (Proxy) | TFLITE | 103.562 ms | 0 - 328 MB | NPU | [FCN-ResNet50.tflite](https://huggingface.co/qualcomm/FCN-ResNet50/blob/main/FCN-ResNet50.tflite) |
43
- | FCN-ResNet50 | float | QCS8450 (Proxy) | Qualcomm® QCS8450 (Proxy) | QNN_DLC | 100.83 ms | 3 - 288 MB | NPU | [FCN-ResNet50.dlc](https://huggingface.co/qualcomm/FCN-ResNet50/blob/main/FCN-ResNet50.dlc) |
44
- | FCN-ResNet50 | float | QCS8550 (Proxy) | Qualcomm® QCS8550 (Proxy) | TFLITE | 43.941 ms | 0 - 3 MB | NPU | [FCN-ResNet50.tflite](https://huggingface.co/qualcomm/FCN-ResNet50/blob/main/FCN-ResNet50.tflite) |
45
- | FCN-ResNet50 | float | QCS8550 (Proxy) | Qualcomm® QCS8550 (Proxy) | QNN_DLC | 42.972 ms | 3 - 6 MB | NPU | [FCN-ResNet50.dlc](https://huggingface.co/qualcomm/FCN-ResNet50/blob/main/FCN-ResNet50.dlc) |
46
- | FCN-ResNet50 | float | QCS8550 (Proxy) | Qualcomm® QCS8550 (Proxy) | ONNX | 43.011 ms | 0 - 79 MB | NPU | [FCN-ResNet50.onnx.zip](https://huggingface.co/qualcomm/FCN-ResNet50/blob/main/FCN-ResNet50.onnx.zip) |
47
- | FCN-ResNet50 | float | QCS9075 (Proxy) | Qualcomm® QCS9075 (Proxy) | TFLITE | 329.164 ms | 0 - 294 MB | NPU | [FCN-ResNet50.tflite](https://huggingface.co/qualcomm/FCN-ResNet50/blob/main/FCN-ResNet50.tflite) |
48
- | FCN-ResNet50 | float | QCS9075 (Proxy) | Qualcomm® QCS9075 (Proxy) | QNN_DLC | 72.364 ms | 0 - 264 MB | NPU | [FCN-ResNet50.dlc](https://huggingface.co/qualcomm/FCN-ResNet50/blob/main/FCN-ResNet50.dlc) |
49
- | FCN-ResNet50 | float | SA7255P ADP | Qualcomm® SA7255P | TFLITE | 270.53 ms | 1 - 292 MB | NPU | [FCN-ResNet50.tflite](https://huggingface.co/qualcomm/FCN-ResNet50/blob/main/FCN-ResNet50.tflite) |
50
- | FCN-ResNet50 | float | SA7255P ADP | Qualcomm® SA7255P | QNN_DLC | 271.274 ms | 3 - 266 MB | NPU | [FCN-ResNet50.dlc](https://huggingface.co/qualcomm/FCN-ResNet50/blob/main/FCN-ResNet50.dlc) |
51
- | FCN-ResNet50 | float | SA8295P ADP | Qualcomm® SA8295P | TFLITE | 94.77 ms | 0 - 256 MB | NPU | [FCN-ResNet50.tflite](https://huggingface.co/qualcomm/FCN-ResNet50/blob/main/FCN-ResNet50.tflite) |
52
- | FCN-ResNet50 | float | SA8295P ADP | Qualcomm® SA8295P | QNN_DLC | 93.861 ms | 0 - 231 MB | NPU | [FCN-ResNet50.dlc](https://huggingface.co/qualcomm/FCN-ResNet50/blob/main/FCN-ResNet50.dlc) |
53
- | FCN-ResNet50 | float | SA8775P ADP | Qualcomm® SA8775P | TFLITE | 329.164 ms | 0 - 294 MB | NPU | [FCN-ResNet50.tflite](https://huggingface.co/qualcomm/FCN-ResNet50/blob/main/FCN-ResNet50.tflite) |
54
- | FCN-ResNet50 | float | SA8775P ADP | Qualcomm® SA8775P | QNN_DLC | 72.364 ms | 0 - 264 MB | NPU | [FCN-ResNet50.dlc](https://huggingface.co/qualcomm/FCN-ResNet50/blob/main/FCN-ResNet50.dlc) |
55
- | FCN-ResNet50 | float | Samsung Galaxy S24 | Snapdragon® 8 Gen 3 Mobile | TFLITE | 33.0 ms | 0 - 387 MB | NPU | [FCN-ResNet50.tflite](https://huggingface.co/qualcomm/FCN-ResNet50/blob/main/FCN-ResNet50.tflite) |
56
- | FCN-ResNet50 | float | Samsung Galaxy S24 | Snapdragon® 8 Gen 3 Mobile | QNN_DLC | 32.082 ms | 3 - 347 MB | NPU | [FCN-ResNet50.dlc](https://huggingface.co/qualcomm/FCN-ResNet50/blob/main/FCN-ResNet50.dlc) |
57
- | FCN-ResNet50 | float | Samsung Galaxy S24 | Snapdragon® 8 Gen 3 Mobile | ONNX | 32.129 ms | 4 - 314 MB | NPU | [FCN-ResNet50.onnx.zip](https://huggingface.co/qualcomm/FCN-ResNet50/blob/main/FCN-ResNet50.onnx.zip) |
58
- | FCN-ResNet50 | float | Samsung Galaxy S25 | Snapdragon® 8 Elite For Galaxy Mobile | TFLITE | 27.243 ms | 0 - 307 MB | NPU | [FCN-ResNet50.tflite](https://huggingface.co/qualcomm/FCN-ResNet50/blob/main/FCN-ResNet50.tflite) |
59
- | FCN-ResNet50 | float | Samsung Galaxy S25 | Snapdragon® 8 Elite For Galaxy Mobile | QNN_DLC | 26.13 ms | 3 - 284 MB | NPU | [FCN-ResNet50.dlc](https://huggingface.co/qualcomm/FCN-ResNet50/blob/main/FCN-ResNet50.dlc) |
60
- | FCN-ResNet50 | float | Samsung Galaxy S25 | Snapdragon® 8 Elite For Galaxy Mobile | ONNX | 26.735 ms | 2 - 239 MB | NPU | [FCN-ResNet50.onnx.zip](https://huggingface.co/qualcomm/FCN-ResNet50/blob/main/FCN-ResNet50.onnx.zip) |
61
- | FCN-ResNet50 | float | Snapdragon 8 Elite Gen 5 QRD | Snapdragon® 8 Elite Gen 5 Mobile | TFLITE | 34.739 ms | 0 - 394 MB | NPU | [FCN-ResNet50.tflite](https://huggingface.co/qualcomm/FCN-ResNet50/blob/main/FCN-ResNet50.tflite) |
62
- | FCN-ResNet50 | float | Snapdragon 8 Elite Gen 5 QRD | Snapdragon® 8 Elite Gen 5 Mobile | QNN_DLC | 22.939 ms | 3 - 295 MB | NPU | [FCN-ResNet50.dlc](https://huggingface.co/qualcomm/FCN-ResNet50/blob/main/FCN-ResNet50.dlc) |
63
- | FCN-ResNet50 | float | Snapdragon 8 Elite Gen 5 QRD | Snapdragon® 8 Elite Gen 5 Mobile | ONNX | 21.287 ms | 4 - 254 MB | NPU | [FCN-ResNet50.onnx.zip](https://huggingface.co/qualcomm/FCN-ResNet50/blob/main/FCN-ResNet50.onnx.zip) |
64
- | FCN-ResNet50 | float | Snapdragon X Elite CRD | Snapdragon® X Elite | QNN_DLC | 43.749 ms | 3 - 3 MB | NPU | [FCN-ResNet50.dlc](https://huggingface.co/qualcomm/FCN-ResNet50/blob/main/FCN-ResNet50.dlc) |
65
- | FCN-ResNet50 | float | Snapdragon X Elite CRD | Snapdragon® X Elite | ONNX | 43.726 ms | 63 - 63 MB | NPU | [FCN-ResNet50.onnx.zip](https://huggingface.co/qualcomm/FCN-ResNet50/blob/main/FCN-ResNet50.onnx.zip) |
66
- | FCN-ResNet50 | w8a8 | Dragonwing Q-6690 MTP | Qualcomm® QCM6690 | TFLITE | 307.262 ms | 0 - 323 MB | NPU | [FCN-ResNet50.tflite](https://huggingface.co/qualcomm/FCN-ResNet50/blob/main/FCN-ResNet50_w8a8.tflite) |
67
- | FCN-ResNet50 | w8a8 | Dragonwing Q-6690 MTP | Qualcomm® QCM6690 | QNN_DLC | 366.933 ms | 1 - 329 MB | NPU | [FCN-ResNet50.dlc](https://huggingface.co/qualcomm/FCN-ResNet50/blob/main/FCN-ResNet50_w8a8.dlc) |
68
- | FCN-ResNet50 | w8a8 | Dragonwing Q-6690 MTP | Qualcomm® QCM6690 | ONNX | 852.758 ms | 48 - 63 MB | CPU | [FCN-ResNet50.onnx.zip](https://huggingface.co/qualcomm/FCN-ResNet50/blob/main/FCN-ResNet50_w8a8.onnx.zip) |
69
- | FCN-ResNet50 | w8a8 | Dragonwing RB3 Gen 2 Vision Kit | Qualcomm® QCS6490 | TFLITE | 81.051 ms | 0 - 39 MB | NPU | [FCN-ResNet50.tflite](https://huggingface.co/qualcomm/FCN-ResNet50/blob/main/FCN-ResNet50_w8a8.tflite) |
70
- | FCN-ResNet50 | w8a8 | Dragonwing RB3 Gen 2 Vision Kit | Qualcomm® QCS6490 | QNN_DLC | 79.112 ms | 1 - 3 MB | NPU | [FCN-ResNet50.dlc](https://huggingface.co/qualcomm/FCN-ResNet50/blob/main/FCN-ResNet50_w8a8.dlc) |
71
- | FCN-ResNet50 | w8a8 | Dragonwing RB3 Gen 2 Vision Kit | Qualcomm® QCS6490 | ONNX | 903.646 ms | 66 - 111 MB | CPU | [FCN-ResNet50.onnx.zip](https://huggingface.co/qualcomm/FCN-ResNet50/blob/main/FCN-ResNet50_w8a8.onnx.zip) |
72
- | FCN-ResNet50 | w8a8 | QCS8275 (Proxy) | Qualcomm® QCS8275 (Proxy) | TFLITE | 37.19 ms | 0 - 184 MB | NPU | [FCN-ResNet50.tflite](https://huggingface.co/qualcomm/FCN-ResNet50/blob/main/FCN-ResNet50_w8a8.tflite) |
73
- | FCN-ResNet50 | w8a8 | QCS8275 (Proxy) | Qualcomm® QCS8275 (Proxy) | QNN_DLC | 38.259 ms | 1 - 183 MB | NPU | [FCN-ResNet50.dlc](https://huggingface.co/qualcomm/FCN-ResNet50/blob/main/FCN-ResNet50_w8a8.dlc) |
74
- | FCN-ResNet50 | w8a8 | QCS8450 (Proxy) | Qualcomm® QCS8450 (Proxy) | TFLITE | 22.245 ms | 0 - 239 MB | NPU | [FCN-ResNet50.tflite](https://huggingface.co/qualcomm/FCN-ResNet50/blob/main/FCN-ResNet50_w8a8.tflite) |
75
- | FCN-ResNet50 | w8a8 | QCS8450 (Proxy) | Qualcomm® QCS8450 (Proxy) | QNN_DLC | 23.562 ms | 1 - 237 MB | NPU | [FCN-ResNet50.dlc](https://huggingface.co/qualcomm/FCN-ResNet50/blob/main/FCN-ResNet50_w8a8.dlc) |
76
- | FCN-ResNet50 | w8a8 | QCS8550 (Proxy) | Qualcomm® QCS8550 (Proxy) | TFLITE | 13.526 ms | 0 - 3 MB | NPU | [FCN-ResNet50.tflite](https://huggingface.co/qualcomm/FCN-ResNet50/blob/main/FCN-ResNet50_w8a8.tflite) |
77
- | FCN-ResNet50 | w8a8 | QCS8550 (Proxy) | Qualcomm® QCS8550 (Proxy) | QNN_DLC | 14.314 ms | 1 - 3 MB | NPU | [FCN-ResNet50.dlc](https://huggingface.co/qualcomm/FCN-ResNet50/blob/main/FCN-ResNet50_w8a8.dlc) |
78
- | FCN-ResNet50 | w8a8 | QCS8550 (Proxy) | Qualcomm® QCS8550 (Proxy) | ONNX | 13.824 ms | 0 - 42 MB | NPU | [FCN-ResNet50.onnx.zip](https://huggingface.co/qualcomm/FCN-ResNet50/blob/main/FCN-ResNet50_w8a8.onnx.zip) |
79
- | FCN-ResNet50 | w8a8 | QCS9075 (Proxy) | Qualcomm® QCS9075 (Proxy) | TFLITE | 13.943 ms | 0 - 184 MB | NPU | [FCN-ResNet50.tflite](https://huggingface.co/qualcomm/FCN-ResNet50/blob/main/FCN-ResNet50_w8a8.tflite) |
80
- | FCN-ResNet50 | w8a8 | QCS9075 (Proxy) | Qualcomm® QCS9075 (Proxy) | QNN_DLC | 14.777 ms | 1 - 183 MB | NPU | [FCN-ResNet50.dlc](https://huggingface.co/qualcomm/FCN-ResNet50/blob/main/FCN-ResNet50_w8a8.dlc) |
81
- | FCN-ResNet50 | w8a8 | SA7255P ADP | Qualcomm® SA7255P | TFLITE | 37.19 ms | 0 - 184 MB | NPU | [FCN-ResNet50.tflite](https://huggingface.co/qualcomm/FCN-ResNet50/blob/main/FCN-ResNet50_w8a8.tflite) |
82
- | FCN-ResNet50 | w8a8 | SA7255P ADP | Qualcomm® SA7255P | QNN_DLC | 38.259 ms | 1 - 183 MB | NPU | [FCN-ResNet50.dlc](https://huggingface.co/qualcomm/FCN-ResNet50/blob/main/FCN-ResNet50_w8a8.dlc) |
83
- | FCN-ResNet50 | w8a8 | SA8295P ADP | Qualcomm® SA8295P | TFLITE | 20.346 ms | 0 - 186 MB | NPU | [FCN-ResNet50.tflite](https://huggingface.co/qualcomm/FCN-ResNet50/blob/main/FCN-ResNet50_w8a8.tflite) |
84
- | FCN-ResNet50 | w8a8 | SA8295P ADP | Qualcomm® SA8295P | QNN_DLC | 21.177 ms | 1 - 187 MB | NPU | [FCN-ResNet50.dlc](https://huggingface.co/qualcomm/FCN-ResNet50/blob/main/FCN-ResNet50_w8a8.dlc) |
85
- | FCN-ResNet50 | w8a8 | SA8775P ADP | Qualcomm® SA8775P | TFLITE | 13.943 ms | 0 - 184 MB | NPU | [FCN-ResNet50.tflite](https://huggingface.co/qualcomm/FCN-ResNet50/blob/main/FCN-ResNet50_w8a8.tflite) |
86
- | FCN-ResNet50 | w8a8 | SA8775P ADP | Qualcomm® SA8775P | QNN_DLC | 14.777 ms | 1 - 183 MB | NPU | [FCN-ResNet50.dlc](https://huggingface.co/qualcomm/FCN-ResNet50/blob/main/FCN-ResNet50_w8a8.dlc) |
87
- | FCN-ResNet50 | w8a8 | Samsung Galaxy S24 | Snapdragon® 8 Gen 3 Mobile | TFLITE | 9.659 ms | 0 - 245 MB | NPU | [FCN-ResNet50.tflite](https://huggingface.co/qualcomm/FCN-ResNet50/blob/main/FCN-ResNet50_w8a8.tflite) |
88
- | FCN-ResNet50 | w8a8 | Samsung Galaxy S24 | Snapdragon® 8 Gen 3 Mobile | QNN_DLC | 10.339 ms | 1 - 246 MB | NPU | [FCN-ResNet50.dlc](https://huggingface.co/qualcomm/FCN-ResNet50/blob/main/FCN-ResNet50_w8a8.dlc) |
89
- | FCN-ResNet50 | w8a8 | Samsung Galaxy S24 | Snapdragon® 8 Gen 3 Mobile | ONNX | 9.91 ms | 1 - 233 MB | NPU | [FCN-ResNet50.onnx.zip](https://huggingface.co/qualcomm/FCN-ResNet50/blob/main/FCN-ResNet50_w8a8.onnx.zip) |
90
- | FCN-ResNet50 | w8a8 | Samsung Galaxy S25 | Snapdragon® 8 Elite For Galaxy Mobile | TFLITE | 8.188 ms | 0 - 178 MB | NPU | [FCN-ResNet50.tflite](https://huggingface.co/qualcomm/FCN-ResNet50/blob/main/FCN-ResNet50_w8a8.tflite) |
91
- | FCN-ResNet50 | w8a8 | Samsung Galaxy S25 | Snapdragon® 8 Elite For Galaxy Mobile | QNN_DLC | 8.44 ms | 1 - 179 MB | NPU | [FCN-ResNet50.dlc](https://huggingface.co/qualcomm/FCN-ResNet50/blob/main/FCN-ResNet50_w8a8.dlc) |
92
- | FCN-ResNet50 | w8a8 | Samsung Galaxy S25 | Snapdragon® 8 Elite For Galaxy Mobile | ONNX | 8.426 ms | 1 - 155 MB | NPU | [FCN-ResNet50.onnx.zip](https://huggingface.co/qualcomm/FCN-ResNet50/blob/main/FCN-ResNet50_w8a8.onnx.zip) |
93
- | FCN-ResNet50 | w8a8 | Snapdragon 7 Gen 4 QRD | Snapdragon® 7 Gen 4 Mobile | TFLITE | 25.494 ms | 0 - 261 MB | NPU | [FCN-ResNet50.tflite](https://huggingface.co/qualcomm/FCN-ResNet50/blob/main/FCN-ResNet50_w8a8.tflite) |
94
- | FCN-ResNet50 | w8a8 | Snapdragon 7 Gen 4 QRD | Snapdragon® 7 Gen 4 Mobile | QNN_DLC | 24.907 ms | 1 - 264 MB | NPU | [FCN-ResNet50.dlc](https://huggingface.co/qualcomm/FCN-ResNet50/blob/main/FCN-ResNet50_w8a8.dlc) |
95
- | FCN-ResNet50 | w8a8 | Snapdragon 7 Gen 4 QRD | Snapdragon® 7 Gen 4 Mobile | ONNX | 695.861 ms | 49 - 64 MB | CPU | [FCN-ResNet50.onnx.zip](https://huggingface.co/qualcomm/FCN-ResNet50/blob/main/FCN-ResNet50_w8a8.onnx.zip) |
96
- | FCN-ResNet50 | w8a8 | Snapdragon 8 Elite Gen 5 QRD | Snapdragon® 8 Elite Gen 5 Mobile | TFLITE | 6.749 ms | 0 - 218 MB | NPU | [FCN-ResNet50.tflite](https://huggingface.co/qualcomm/FCN-ResNet50/blob/main/FCN-ResNet50_w8a8.tflite) |
97
- | FCN-ResNet50 | w8a8 | Snapdragon 8 Elite Gen 5 QRD | Snapdragon® 8 Elite Gen 5 Mobile | QNN_DLC | 7.03 ms | 1 - 217 MB | NPU | [FCN-ResNet50.dlc](https://huggingface.co/qualcomm/FCN-ResNet50/blob/main/FCN-ResNet50_w8a8.dlc) |
98
- | FCN-ResNet50 | w8a8 | Snapdragon 8 Elite Gen 5 QRD | Snapdragon® 8 Elite Gen 5 Mobile | ONNX | 7.006 ms | 1 - 194 MB | NPU | [FCN-ResNet50.onnx.zip](https://huggingface.co/qualcomm/FCN-ResNet50/blob/main/FCN-ResNet50_w8a8.onnx.zip) |
99
- | FCN-ResNet50 | w8a8 | Snapdragon X Elite CRD | Snapdragon® X Elite | QNN_DLC | 14.658 ms | 1 - 1 MB | NPU | [FCN-ResNet50.dlc](https://huggingface.co/qualcomm/FCN-ResNet50/blob/main/FCN-ResNet50_w8a8.dlc) |
100
- | FCN-ResNet50 | w8a8 | Snapdragon X Elite CRD | Snapdragon® X Elite | ONNX | 13.907 ms | 32 - 32 MB | NPU | [FCN-ResNet50.onnx.zip](https://huggingface.co/qualcomm/FCN-ResNet50/blob/main/FCN-ResNet50_w8a8.onnx.zip) |
101
-
102
-
103
-
104
-
105
- ## Installation
106
-
107
-
108
- Install the package via pip:
109
- ```bash
110
- pip install qai-hub-models
111
- ```
112
-
113
-
114
- ## Configure Qualcomm® AI Hub Workbench to run this model on a cloud-hosted device
115
-
116
- Sign-in to [Qualcomm® AI Hub Workbench](https://workbench.aihub.qualcomm.com/) with your
117
- Qualcomm® ID. Once signed in navigate to `Account -> Settings -> API Token`.
118
-
119
- With this API token, you can configure your client to run models on the cloud
120
- hosted devices.
121
- ```bash
122
- qai-hub configure --api_token API_TOKEN
123
- ```
124
- Navigate to [docs](https://workbench.aihub.qualcomm.com/docs/) for more information.
125
-
126
-
127
-
128
- ## Demo off target
129
-
130
- The package contains a simple end-to-end demo that downloads pre-trained
131
- weights and runs this model on a sample input.
132
-
133
- ```bash
134
- python -m qai_hub_models.models.fcn_resnet50.demo
135
- ```
136
-
137
- The above demo runs a reference implementation of pre-processing, model
138
- inference, and post processing.
139
-
140
- **NOTE**: If you want running in a Jupyter Notebook or Google Colab like
141
- environment, please add the following to your cell (instead of the above).
142
- ```
143
- %run -m qai_hub_models.models.fcn_resnet50.demo
144
- ```
145
-
146
-
147
- ### Run model on a cloud-hosted device
148
-
149
- In addition to the demo, you can also run the model on a cloud-hosted Qualcomm®
150
- device. This script does the following:
151
- * Performance check on-device on a cloud-hosted device
152
- * Downloads compiled assets that can be deployed on-device for Android.
153
- * Accuracy check between PyTorch and on-device outputs.
154
-
155
- ```bash
156
- python -m qai_hub_models.models.fcn_resnet50.export
157
- ```
158
-
159
-
160
-
161
- ## How does this work?
162
-
163
- This [export script](https://aihub.qualcomm.com/models/fcn_resnet50/qai_hub_models/models/FCN-ResNet50/export.py)
164
- leverages [Qualcomm® AI Hub](https://aihub.qualcomm.com/) to optimize, validate, and deploy this model
165
- on-device. Lets go through each step below in detail:
166
-
167
- Step 1: **Compile model for on-device deployment**
168
-
169
- To compile a PyTorch model for on-device deployment, we first trace the model
170
- in memory using the `jit.trace` and then call the `submit_compile_job` API.
171
-
172
- ```python
173
- import torch
174
-
175
- import qai_hub as hub
176
- from qai_hub_models.models.fcn_resnet50 import Model
177
-
178
- # Load the model
179
- torch_model = Model.from_pretrained()
180
-
181
- # Device
182
- device = hub.Device("Samsung Galaxy S25")
183
-
184
- # Trace model
185
- input_shape = torch_model.get_input_spec()
186
- sample_inputs = torch_model.sample_inputs()
187
-
188
- pt_model = torch.jit.trace(torch_model, [torch.tensor(data[0]) for _, data in sample_inputs.items()])
189
-
190
- # Compile model on a specific device
191
- compile_job = hub.submit_compile_job(
192
- model=pt_model,
193
- device=device,
194
- input_specs=torch_model.get_input_spec(),
195
- )
196
-
197
- # Get target model to run on-device
198
- target_model = compile_job.get_target_model()
199
-
200
- ```
201
-
202
-
203
- Step 2: **Performance profiling on cloud-hosted device**
204
-
205
- After compiling models from step 1. Models can be profiled model on-device using the
206
- `target_model`. Note that this scripts runs the model on a device automatically
207
- provisioned in the cloud. Once the job is submitted, you can navigate to a
208
- provided job URL to view a variety of on-device performance metrics.
209
- ```python
210
- profile_job = hub.submit_profile_job(
211
- model=target_model,
212
- device=device,
213
- )
214
-
215
- ```
216
-
217
- Step 3: **Verify on-device accuracy**
218
-
219
- To verify the accuracy of the model on-device, you can run on-device inference
220
- on sample input data on the same cloud hosted device.
221
- ```python
222
- input_data = torch_model.sample_inputs()
223
- inference_job = hub.submit_inference_job(
224
- model=target_model,
225
- device=device,
226
- inputs=input_data,
227
- )
228
- on_device_output = inference_job.download_output_data()
229
-
230
- ```
231
- With the output of the model, you can compute like PSNR, relative errors or
232
- spot check the output with expected output.
233
-
234
- **Note**: This on-device profiling and inference requires access to Qualcomm®
235
- AI Hub Workbench. [Sign up for access](https://myaccount.qualcomm.com/signup).
236
-
237
-
238
-
239
- ## Run demo on a cloud-hosted device
240
-
241
- You can also run the demo on-device.
242
-
243
- ```bash
244
- python -m qai_hub_models.models.fcn_resnet50.demo --eval-mode on-device
245
- ```
246
-
247
- **NOTE**: If you want running in a Jupyter Notebook or Google Colab like
248
- environment, please add the following to your cell (instead of the above).
249
- ```
250
- %run -m qai_hub_models.models.fcn_resnet50.demo -- --eval-mode on-device
251
- ```
252
-
253
-
254
- ## Deploying compiled model to Android
255
-
256
-
257
- The models can be deployed using multiple runtimes:
258
- - TensorFlow Lite (`.tflite` export): [This
259
- tutorial](https://www.tensorflow.org/lite/android/quickstart) provides a
260
- guide to deploy the .tflite model in an Android application.
261
-
262
-
263
- - QNN (`.so` export ): This [sample
264
- app](https://docs.qualcomm.com/bundle/publicresource/topics/80-63442-50/sample_app.html)
265
- provides instructions on how to use the `.so` shared library in an Android application.
266
-
267
-
268
- ## View on Qualcomm® AI Hub
269
- Get more details on FCN-ResNet50's performance across various devices [here](https://aihub.qualcomm.com/models/fcn_resnet50).
270
- Explore all available models on [Qualcomm® AI Hub](https://aihub.qualcomm.com/)
271
-
272
 
273
  ## License
274
  * The license for the original implementation of FCN-ResNet50 can be found
275
  [here](https://github.com/pytorch/vision/blob/main/LICENSE).
276
 
277
-
278
-
279
  ## References
280
  * [Fully Convolutional Networks for Semantic Segmentation](https://arxiv.org/abs/1411.4038)
281
  * [Source Model Implementation](https://github.com/pytorch/vision/blob/main/torchvision/models/segmentation/fcn.py)
282
 
283
-
284
-
285
  ## Community
286
  * Join [our AI Hub Slack community](https://aihub.qualcomm.com/community/slack) to collaborate, post questions and learn more about on-device AI.
287
  * For questions or feedback please [reach out to us](mailto:ai-hub-support@qti.qualcomm.com).
288
-
289
-
 
9
 
10
  ![](https://qaihub-public-assets.s3.us-west-2.amazonaws.com/qai-hub-models/models/fcn_resnet50/web-assets/model_demo.png)
11
 
12
+ # FCN-ResNet50: Optimized for Qualcomm Devices
 
 
13
 
14
  FCN_ResNet50 is a machine learning model that can segment images from the COCO dataset. It uses ResNet50 as a backbone.
15
 
16
+ This is based on the implementation of FCN-ResNet50 found [here](https://github.com/pytorch/vision/blob/main/torchvision/models/segmentation/fcn.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/fcn_resnet50) 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/fcn_resnet50/releases/v0.46.1/fcn_resnet50-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/fcn_resnet50/releases/v0.46.1/fcn_resnet50-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/fcn_resnet50/releases/v0.46.1/fcn_resnet50-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/fcn_resnet50/releases/v0.46.1/fcn_resnet50-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/fcn_resnet50/releases/v0.46.1/fcn_resnet50-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/fcn_resnet50/releases/v0.46.1/fcn_resnet50-tflite-w8a8.zip)
36
+
37
+ For more device-specific assets and performance metrics, visit **[FCN-ResNet50 on Qualcomm® AI Hub](https://aihub.qualcomm.com/models/fcn_resnet50)**.
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/fcn_resnet50) 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 [FCN-ResNet50 on GitHub](https://github.com/quic/ai-hub-models/blob/main/qai_hub_models/models/fcn_resnet50) for usage instructions.
50
+
51
+ ## Model Details
52
+
53
+ **Model Type:** Model_use_case.semantic_segmentation
54
+
55
+ **Model Stats:**
56
+ - Model checkpoint: COCO_WITH_VOC_LABELS_V1
57
+ - Input resolution: 224x224
58
+ - Number of output classes: 21
59
+ - Number of parameters: 33.0M
60
+ - Model size (float): 126 MB
61
+ - Model size (w8a8): 32.2 MB
62
+
63
+ ## Performance Summary
64
+ | Model | Runtime | Precision | Chipset | Inference Time (ms) | Peak Memory Range (MB) | Primary Compute Unit
65
+ |---|---|---|---|---|---|---
66
+ | FCN-ResNet50 | ONNX | float | Snapdragon® X Elite | 43.753 ms | 63 - 63 MB | NPU
67
+ | FCN-ResNet50 | ONNX | float | Snapdragon® 8 Gen 3 Mobile | 32.391 ms | 2 - 314 MB | NPU
68
+ | FCN-ResNet50 | ONNX | float | Qualcomm® QCS8550 (Proxy) | 43.223 ms | 0 - 81 MB | NPU
69
+ | FCN-ResNet50 | ONNX | float | Qualcomm® QCS9075 | 74.573 ms | 3 - 9 MB | NPU
70
+ | FCN-ResNet50 | ONNX | float | Snapdragon® 8 Elite For Galaxy Mobile | 26.542 ms | 1 - 239 MB | NPU
71
+ | FCN-ResNet50 | ONNX | float | Snapdragon® 8 Elite Gen 5 Mobile | 20.443 ms | 2 - 255 MB | NPU
72
+ | FCN-ResNet50 | ONNX | w8a8 | Snapdragon® X Elite | 13.859 ms | 32 - 32 MB | NPU
73
+ | FCN-ResNet50 | ONNX | w8a8 | Snapdragon® 8 Gen 3 Mobile | 9.935 ms | 0 - 231 MB | NPU
74
+ | FCN-ResNet50 | ONNX | w8a8 | Qualcomm® QCS6490 | 921.792 ms | 67 - 115 MB | CPU
75
+ | FCN-ResNet50 | ONNX | w8a8 | Qualcomm® QCS8550 (Proxy) | 13.896 ms | 0 - 220 MB | NPU
76
+ | FCN-ResNet50 | ONNX | w8a8 | Qualcomm® QCS9075 | 15.973 ms | 1 - 4 MB | NPU
77
+ | FCN-ResNet50 | ONNX | w8a8 | Qualcomm® QCM6690 | 824.792 ms | 76 - 85 MB | CPU
78
+ | FCN-ResNet50 | ONNX | w8a8 | Snapdragon® 8 Elite For Galaxy Mobile | 8.414 ms | 1 - 156 MB | NPU
79
+ | FCN-ResNet50 | ONNX | w8a8 | Snapdragon® 7 Gen 4 Mobile | 700.625 ms | 71 - 79 MB | CPU
80
+ | FCN-ResNet50 | ONNX | w8a8 | Snapdragon® 8 Elite Gen 5 Mobile | 6.998 ms | 1 - 197 MB | NPU
81
+ | FCN-ResNet50 | QNN_DLC | float | Snapdragon® X Elite | 44.072 ms | 3 - 3 MB | NPU
82
+ | FCN-ResNet50 | QNN_DLC | float | Snapdragon® 8 Gen 3 Mobile | 33.401 ms | 0 - 382 MB | NPU
83
+ | FCN-ResNet50 | QNN_DLC | float | Qualcomm® QCS8275 (Proxy) | 272.088 ms | 1 - 305 MB | NPU
84
+ | FCN-ResNet50 | QNN_DLC | float | Qualcomm® QCS8550 (Proxy) | 44.864 ms | 3 - 6 MB | NPU
85
+ | FCN-ResNet50 | QNN_DLC | float | Qualcomm® SA8775P | 72.053 ms | 1 - 304 MB | NPU
86
+ | FCN-ResNet50 | QNN_DLC | float | Qualcomm® QCS9075 | 78.033 ms | 3 - 8 MB | NPU
87
+ | FCN-ResNet50 | QNN_DLC | float | Qualcomm® QCS8450 (Proxy) | 84.665 ms | 1 - 276 MB | NPU
88
+ | FCN-ResNet50 | QNN_DLC | float | Qualcomm® SA7255P | 272.088 ms | 1 - 305 MB | NPU
89
+ | FCN-ResNet50 | QNN_DLC | float | Qualcomm® SA8295P | 77.345 ms | 0 - 217 MB | NPU
90
+ | FCN-ResNet50 | QNN_DLC | float | Snapdragon® 8 Elite For Galaxy Mobile | 25.991 ms | 3 - 323 MB | NPU
91
+ | FCN-ResNet50 | QNN_DLC | float | Snapdragon® 8 Elite Gen 5 Mobile | 23.219 ms | 3 - 330 MB | NPU
92
+ | FCN-ResNet50 | QNN_DLC | w8a8 | Snapdragon® X Elite | 15.207 ms | 1 - 1 MB | NPU
93
+ | FCN-ResNet50 | QNN_DLC | w8a8 | Snapdragon® 8 Gen 3 Mobile | 11.408 ms | 0 - 266 MB | NPU
94
+ | FCN-ResNet50 | QNN_DLC | w8a8 | Qualcomm® QCS6490 | 92.892 ms | 1 - 3 MB | NPU
95
+ | FCN-ResNet50 | QNN_DLC | w8a8 | Qualcomm® QCS8275 (Proxy) | 39.344 ms | 1 - 205 MB | NPU
96
+ | FCN-ResNet50 | QNN_DLC | w8a8 | Qualcomm® QCS8550 (Proxy) | 15.051 ms | 1 - 3 MB | NPU
97
+ | FCN-ResNet50 | QNN_DLC | w8a8 | Qualcomm® SA8775P | 14.56 ms | 1 - 214 MB | NPU
98
+ | FCN-ResNet50 | QNN_DLC | w8a8 | Qualcomm® QCS9075 | 16.824 ms | 3 - 5 MB | NPU
99
+ | FCN-ResNet50 | QNN_DLC | w8a8 | Qualcomm® QCM6690 | 407.762 ms | 1 - 347 MB | NPU
100
+ | FCN-ResNet50 | QNN_DLC | w8a8 | Qualcomm® QCS8450 (Proxy) | 23.958 ms | 1 - 263 MB | NPU
101
+ | FCN-ResNet50 | QNN_DLC | w8a8 | Qualcomm® SA7255P | 39.344 ms | 1 - 205 MB | NPU
102
+ | FCN-ResNet50 | QNN_DLC | w8a8 | Qualcomm® SA8295P | 21.86 ms | 1 - 209 MB | NPU
103
+ | FCN-ResNet50 | QNN_DLC | w8a8 | Snapdragon® 8 Elite For Galaxy Mobile | 8.765 ms | 1 - 198 MB | NPU
104
+ | FCN-ResNet50 | QNN_DLC | w8a8 | Snapdragon® 7 Gen 4 Mobile | 25.963 ms | 1 - 280 MB | NPU
105
+ | FCN-ResNet50 | QNN_DLC | w8a8 | Snapdragon® 8 Elite Gen 5 Mobile | 7.52 ms | 1 - 245 MB | NPU
106
+ | FCN-ResNet50 | TFLITE | float | Snapdragon® 8 Gen 3 Mobile | 33.035 ms | 0 - 427 MB | NPU
107
+ | FCN-ResNet50 | TFLITE | float | Qualcomm® QCS8275 (Proxy) | 272.13 ms | 0 - 331 MB | NPU
108
+ | FCN-ResNet50 | TFLITE | float | Qualcomm® QCS8550 (Proxy) | 44.874 ms | 0 - 410 MB | NPU
109
+ | FCN-ResNet50 | TFLITE | float | Qualcomm® SA8775P | 72.05 ms | 0 - 333 MB | NPU
110
+ | FCN-ResNet50 | TFLITE | float | Qualcomm® QCS9075 | 77.817 ms | 0 - 71 MB | NPU
111
+ | FCN-ResNet50 | TFLITE | float | Qualcomm® QCS8450 (Proxy) | 84.565 ms | 1 - 319 MB | NPU
112
+ | FCN-ResNet50 | TFLITE | float | Qualcomm® SA7255P | 272.13 ms | 0 - 331 MB | NPU
113
+ | FCN-ResNet50 | TFLITE | float | Qualcomm® SA8295P | 77.444 ms | 0 - 247 MB | NPU
114
+ | FCN-ResNet50 | TFLITE | float | Snapdragon® 8 Elite For Galaxy Mobile | 27.043 ms | 0 - 348 MB | NPU
115
+ | FCN-ResNet50 | TFLITE | float | Snapdragon® 8 Elite Gen 5 Mobile | 20.946 ms | 0 - 356 MB | NPU
116
+ | FCN-ResNet50 | TFLITE | w8a8 | Snapdragon® 8 Gen 3 Mobile | 10.969 ms | 0 - 270 MB | NPU
117
+ | FCN-ResNet50 | TFLITE | w8a8 | Qualcomm® QCS6490 | 94.9 ms | 0 - 39 MB | NPU
118
+ | FCN-ResNet50 | TFLITE | w8a8 | Qualcomm® QCS8275 (Proxy) | 38.12 ms | 0 - 204 MB | NPU
119
+ | FCN-ResNet50 | TFLITE | w8a8 | Qualcomm® QCS8550 (Proxy) | 14.445 ms | 0 - 4 MB | NPU
120
+ | FCN-ResNet50 | TFLITE | w8a8 | Qualcomm® SA8775P | 14.511 ms | 0 - 207 MB | NPU
121
+ | FCN-ResNet50 | TFLITE | w8a8 | Qualcomm® QCS9075 | 15.341 ms | 0 - 35 MB | NPU
122
+ | FCN-ResNet50 | TFLITE | w8a8 | Qualcomm® QCM6690 | 433.506 ms | 2 - 353 MB | NPU
123
+ | FCN-ResNet50 | TFLITE | w8a8 | Qualcomm® QCS8450 (Proxy) | 23.285 ms | 0 - 269 MB | NPU
124
+ | FCN-ResNet50 | TFLITE | w8a8 | Qualcomm® SA7255P | 38.12 ms | 0 - 204 MB | NPU
125
+ | FCN-ResNet50 | TFLITE | w8a8 | Qualcomm® SA8295P | 21.104 ms | 0 - 209 MB | NPU
126
+ | FCN-ResNet50 | TFLITE | w8a8 | Snapdragon® 8 Elite For Galaxy Mobile | 8.433 ms | 0 - 200 MB | NPU
127
+ | FCN-ResNet50 | TFLITE | w8a8 | Snapdragon® 7 Gen 4 Mobile | 26.062 ms | 0 - 281 MB | NPU
128
+ | FCN-ResNet50 | TFLITE | w8a8 | Snapdragon® 8 Elite Gen 5 Mobile | 7.007 ms | 0 - 244 MB | NPU
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
129
 
130
  ## License
131
  * The license for the original implementation of FCN-ResNet50 can be found
132
  [here](https://github.com/pytorch/vision/blob/main/LICENSE).
133
 
 
 
134
  ## References
135
  * [Fully Convolutional Networks for Semantic Segmentation](https://arxiv.org/abs/1411.4038)
136
  * [Source Model Implementation](https://github.com/pytorch/vision/blob/main/torchvision/models/segmentation/fcn.py)
137
 
 
 
138
  ## Community
139
  * Join [our AI Hub Slack community](https://aihub.qualcomm.com/community/slack) to collaborate, post questions and learn more about on-device AI.
140
  * 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