qaihm-bot commited on
Commit
e585ae1
1 Parent(s): 0d9c2f4

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +42 -24
README.md CHANGED
@@ -36,28 +36,30 @@ More details on model performance across various devices, can be found
36
 
37
  | Model | Device | Chipset | Target Runtime | Inference Time (ms) | Peak Memory Range (MB) | Precision | Primary Compute Unit | Target Model
38
  |---|---|---|---|---|---|---|---|---|
39
- | DeepLabV3-Plus-MobileNet-Quantized | Samsung Galaxy S23 | Snapdragon® 8 Gen 2 | TFLITE | 4.164 ms | 0 - 9 MB | INT8 | NPU | [DeepLabV3-Plus-MobileNet-Quantized.tflite](https://huggingface.co/qualcomm/DeepLabV3-Plus-MobileNet-Quantized/blob/main/DeepLabV3-Plus-MobileNet-Quantized.tflite) |
40
- | DeepLabV3-Plus-MobileNet-Quantized | Samsung Galaxy S23 | Snapdragon® 8 Gen 2 | QNN | 4.776 ms | 0 - 10 MB | INT8 | NPU | [DeepLabV3-Plus-MobileNet-Quantized.so](https://huggingface.co/qualcomm/DeepLabV3-Plus-MobileNet-Quantized/blob/main/DeepLabV3-Plus-MobileNet-Quantized.so) |
41
- | DeepLabV3-Plus-MobileNet-Quantized | Samsung Galaxy S24 | Snapdragon® 8 Gen 3 | TFLITE | 2.994 ms | 0 - 75 MB | INT8 | NPU | [DeepLabV3-Plus-MobileNet-Quantized.tflite](https://huggingface.co/qualcomm/DeepLabV3-Plus-MobileNet-Quantized/blob/main/DeepLabV3-Plus-MobileNet-Quantized.tflite) |
42
- | DeepLabV3-Plus-MobileNet-Quantized | Samsung Galaxy S24 | Snapdragon® 8 Gen 3 | QNN | 3.442 ms | 1 - 36 MB | INT8 | NPU | [DeepLabV3-Plus-MobileNet-Quantized.so](https://huggingface.co/qualcomm/DeepLabV3-Plus-MobileNet-Quantized/blob/main/DeepLabV3-Plus-MobileNet-Quantized.so) |
43
- | DeepLabV3-Plus-MobileNet-Quantized | Snapdragon 8 Elite QRD | Snapdragon® 8 Elite | TFLITE | 2.801 ms | 0 - 51 MB | INT8 | NPU | [DeepLabV3-Plus-MobileNet-Quantized.tflite](https://huggingface.co/qualcomm/DeepLabV3-Plus-MobileNet-Quantized/blob/main/DeepLabV3-Plus-MobileNet-Quantized.tflite) |
44
- | DeepLabV3-Plus-MobileNet-Quantized | Snapdragon 8 Elite QRD | Snapdragon® 8 Elite | QNN | 3.45 ms | 1 - 31 MB | INT8 | NPU | Use Export Script |
45
- | DeepLabV3-Plus-MobileNet-Quantized | RB3 Gen 2 (Proxy) | QCS6490 Proxy | TFLITE | 18.129 ms | 0 - 62 MB | INT8 | NPU | [DeepLabV3-Plus-MobileNet-Quantized.tflite](https://huggingface.co/qualcomm/DeepLabV3-Plus-MobileNet-Quantized/blob/main/DeepLabV3-Plus-MobileNet-Quantized.tflite) |
46
- | DeepLabV3-Plus-MobileNet-Quantized | RB3 Gen 2 (Proxy) | QCS6490 Proxy | QNN | 19.952 ms | 1 - 9 MB | INT8 | NPU | Use Export Script |
47
- | DeepLabV3-Plus-MobileNet-Quantized | RB5 (Proxy) | QCS8250 Proxy | TFLITE | 162.562 ms | 4 - 10 MB | INT8 | NPU | [DeepLabV3-Plus-MobileNet-Quantized.tflite](https://huggingface.co/qualcomm/DeepLabV3-Plus-MobileNet-Quantized/blob/main/DeepLabV3-Plus-MobileNet-Quantized.tflite) |
48
- | DeepLabV3-Plus-MobileNet-Quantized | QCS8550 (Proxy) | QCS8550 Proxy | TFLITE | 4.143 ms | 0 - 3 MB | INT8 | NPU | [DeepLabV3-Plus-MobileNet-Quantized.tflite](https://huggingface.co/qualcomm/DeepLabV3-Plus-MobileNet-Quantized/blob/main/DeepLabV3-Plus-MobileNet-Quantized.tflite) |
49
- | DeepLabV3-Plus-MobileNet-Quantized | QCS8550 (Proxy) | QCS8550 Proxy | QNN | 3.881 ms | 1 - 2 MB | INT8 | NPU | Use Export Script |
50
- | DeepLabV3-Plus-MobileNet-Quantized | SA8255 (Proxy) | SA8255P Proxy | TFLITE | 4.197 ms | 0 - 2 MB | INT8 | NPU | [DeepLabV3-Plus-MobileNet-Quantized.tflite](https://huggingface.co/qualcomm/DeepLabV3-Plus-MobileNet-Quantized/blob/main/DeepLabV3-Plus-MobileNet-Quantized.tflite) |
51
- | DeepLabV3-Plus-MobileNet-Quantized | SA8255 (Proxy) | SA8255P Proxy | QNN | 3.939 ms | 1 - 2 MB | INT8 | NPU | Use Export Script |
52
- | DeepLabV3-Plus-MobileNet-Quantized | SA8775 (Proxy) | SA8775P Proxy | TFLITE | 4.185 ms | 0 - 3 MB | INT8 | NPU | [DeepLabV3-Plus-MobileNet-Quantized.tflite](https://huggingface.co/qualcomm/DeepLabV3-Plus-MobileNet-Quantized/blob/main/DeepLabV3-Plus-MobileNet-Quantized.tflite) |
53
- | DeepLabV3-Plus-MobileNet-Quantized | SA8775 (Proxy) | SA8775P Proxy | QNN | 3.94 ms | 0 - 1 MB | INT8 | NPU | Use Export Script |
54
- | DeepLabV3-Plus-MobileNet-Quantized | SA8650 (Proxy) | SA8650P Proxy | TFLITE | 4.175 ms | 0 - 2 MB | INT8 | NPU | [DeepLabV3-Plus-MobileNet-Quantized.tflite](https://huggingface.co/qualcomm/DeepLabV3-Plus-MobileNet-Quantized/blob/main/DeepLabV3-Plus-MobileNet-Quantized.tflite) |
55
- | DeepLabV3-Plus-MobileNet-Quantized | SA8650 (Proxy) | SA8650P Proxy | QNN | 3.932 ms | 4 - 6 MB | INT8 | NPU | Use Export Script |
56
- | DeepLabV3-Plus-MobileNet-Quantized | SA8295P ADP | SA8295P | TFLITE | 6.632 ms | 0 - 50 MB | INT8 | NPU | [DeepLabV3-Plus-MobileNet-Quantized.tflite](https://huggingface.co/qualcomm/DeepLabV3-Plus-MobileNet-Quantized/blob/main/DeepLabV3-Plus-MobileNet-Quantized.tflite) |
57
- | DeepLabV3-Plus-MobileNet-Quantized | SA8295P ADP | SA8295P | QNN | 7.203 ms | 1 - 6 MB | INT8 | NPU | Use Export Script |
58
- | DeepLabV3-Plus-MobileNet-Quantized | QCS8450 (Proxy) | QCS8450 Proxy | TFLITE | 4.841 ms | 0 - 77 MB | INT8 | NPU | [DeepLabV3-Plus-MobileNet-Quantized.tflite](https://huggingface.co/qualcomm/DeepLabV3-Plus-MobileNet-Quantized/blob/main/DeepLabV3-Plus-MobileNet-Quantized.tflite) |
59
- | DeepLabV3-Plus-MobileNet-Quantized | QCS8450 (Proxy) | QCS8450 Proxy | QNN | 5.666 ms | 1 - 34 MB | INT8 | NPU | Use Export Script |
60
- | DeepLabV3-Plus-MobileNet-Quantized | Snapdragon X Elite CRD | Snapdragon® X Elite | QNN | 4.267 ms | 1 - 1 MB | INT8 | NPU | Use Export Script |
 
 
61
 
62
 
63
 
@@ -123,7 +125,7 @@ DeepLabV3-Plus-MobileNet-Quantized
123
  Device : Samsung Galaxy S23 (13)
124
  Runtime : TFLITE
125
  Estimated inference time (ms) : 4.2
126
- Estimated peak memory usage (MB): [0, 9]
127
  Total # Ops : 136
128
  Compute Unit(s) : NPU (136 ops)
129
  ```
@@ -144,13 +146,29 @@ in memory using the `jit.trace` and then call the `submit_compile_job` API.
144
  import torch
145
 
146
  import qai_hub as hub
147
- from qai_hub_models.models.deeplabv3_plus_mobilenet_quantized import
148
 
149
  # Load the model
 
150
 
151
  # Device
152
  device = hub.Device("Samsung Galaxy S23")
153
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
154
 
155
  ```
156
 
 
36
 
37
  | Model | Device | Chipset | Target Runtime | Inference Time (ms) | Peak Memory Range (MB) | Precision | Primary Compute Unit | Target Model
38
  |---|---|---|---|---|---|---|---|---|
39
+ | DeepLabV3-Plus-MobileNet-Quantized | Samsung Galaxy S23 | Snapdragon® 8 Gen 2 | TFLITE | 4.171 ms | 0 - 6 MB | INT8 | NPU | [DeepLabV3-Plus-MobileNet-Quantized.tflite](https://huggingface.co/qualcomm/DeepLabV3-Plus-MobileNet-Quantized/blob/main/DeepLabV3-Plus-MobileNet-Quantized.tflite) |
40
+ | DeepLabV3-Plus-MobileNet-Quantized | Samsung Galaxy S23 | Snapdragon® 8 Gen 2 | QNN | 4.745 ms | 0 - 11 MB | INT8 | NPU | [DeepLabV3-Plus-MobileNet-Quantized.so](https://huggingface.co/qualcomm/DeepLabV3-Plus-MobileNet-Quantized/blob/main/DeepLabV3-Plus-MobileNet-Quantized.so) |
41
+ | DeepLabV3-Plus-MobileNet-Quantized | Samsung Galaxy S24 | Snapdragon® 8 Gen 3 | TFLITE | 2.986 ms | 0 - 37 MB | INT8 | NPU | [DeepLabV3-Plus-MobileNet-Quantized.tflite](https://huggingface.co/qualcomm/DeepLabV3-Plus-MobileNet-Quantized/blob/main/DeepLabV3-Plus-MobileNet-Quantized.tflite) |
42
+ | DeepLabV3-Plus-MobileNet-Quantized | Samsung Galaxy S24 | Snapdragon® 8 Gen 3 | QNN | 3.448 ms | 1 - 33 MB | INT8 | NPU | [DeepLabV3-Plus-MobileNet-Quantized.so](https://huggingface.co/qualcomm/DeepLabV3-Plus-MobileNet-Quantized/blob/main/DeepLabV3-Plus-MobileNet-Quantized.so) |
43
+ | DeepLabV3-Plus-MobileNet-Quantized | Snapdragon 8 Elite QRD | Snapdragon® 8 Elite | TFLITE | 2.785 ms | 0 - 31 MB | INT8 | NPU | [DeepLabV3-Plus-MobileNet-Quantized.tflite](https://huggingface.co/qualcomm/DeepLabV3-Plus-MobileNet-Quantized/blob/main/DeepLabV3-Plus-MobileNet-Quantized.tflite) |
44
+ | DeepLabV3-Plus-MobileNet-Quantized | Snapdragon 8 Elite QRD | Snapdragon® 8 Elite | QNN | 3.447 ms | 22 - 51 MB | INT8 | NPU | Use Export Script |
45
+ | DeepLabV3-Plus-MobileNet-Quantized | RB3 Gen 2 (Proxy) | QCS6490 Proxy | TFLITE | 17.946 ms | 0 - 41 MB | INT8 | NPU | [DeepLabV3-Plus-MobileNet-Quantized.tflite](https://huggingface.co/qualcomm/DeepLabV3-Plus-MobileNet-Quantized/blob/main/DeepLabV3-Plus-MobileNet-Quantized.tflite) |
46
+ | DeepLabV3-Plus-MobileNet-Quantized | RB3 Gen 2 (Proxy) | QCS6490 Proxy | QNN | 19.682 ms | 1 - 9 MB | INT8 | NPU | Use Export Script |
47
+ | DeepLabV3-Plus-MobileNet-Quantized | RB5 (Proxy) | QCS8250 Proxy | TFLITE | 163.773 ms | 4 - 12 MB | INT8 | NPU | [DeepLabV3-Plus-MobileNet-Quantized.tflite](https://huggingface.co/qualcomm/DeepLabV3-Plus-MobileNet-Quantized/blob/main/DeepLabV3-Plus-MobileNet-Quantized.tflite) |
48
+ | DeepLabV3-Plus-MobileNet-Quantized | QCS8550 (Proxy) | QCS8550 Proxy | TFLITE | 4.168 ms | 0 - 16 MB | INT8 | NPU | [DeepLabV3-Plus-MobileNet-Quantized.tflite](https://huggingface.co/qualcomm/DeepLabV3-Plus-MobileNet-Quantized/blob/main/DeepLabV3-Plus-MobileNet-Quantized.tflite) |
49
+ | DeepLabV3-Plus-MobileNet-Quantized | QCS8550 (Proxy) | QCS8550 Proxy | QNN | 3.894 ms | 1 - 3 MB | INT8 | NPU | Use Export Script |
50
+ | DeepLabV3-Plus-MobileNet-Quantized | SA7255P ADP | SA7255P | TFLITE | 54.915 ms | 0 - 30 MB | INT8 | NPU | [DeepLabV3-Plus-MobileNet-Quantized.tflite](https://huggingface.co/qualcomm/DeepLabV3-Plus-MobileNet-Quantized/blob/main/DeepLabV3-Plus-MobileNet-Quantized.tflite) |
51
+ | DeepLabV3-Plus-MobileNet-Quantized | SA7255P ADP | SA7255P | QNN | 55.251 ms | 1 - 6 MB | INT8 | NPU | Use Export Script |
52
+ | DeepLabV3-Plus-MobileNet-Quantized | SA8255 (Proxy) | SA8255P Proxy | TFLITE | 4.182 ms | 0 - 13 MB | INT8 | NPU | [DeepLabV3-Plus-MobileNet-Quantized.tflite](https://huggingface.co/qualcomm/DeepLabV3-Plus-MobileNet-Quantized/blob/main/DeepLabV3-Plus-MobileNet-Quantized.tflite) |
53
+ | DeepLabV3-Plus-MobileNet-Quantized | SA8255 (Proxy) | SA8255P Proxy | QNN | 3.91 ms | 1 - 2 MB | INT8 | NPU | Use Export Script |
54
+ | DeepLabV3-Plus-MobileNet-Quantized | SA8295P ADP | SA8295P | TFLITE | 6.651 ms | 0 - 29 MB | INT8 | NPU | [DeepLabV3-Plus-MobileNet-Quantized.tflite](https://huggingface.co/qualcomm/DeepLabV3-Plus-MobileNet-Quantized/blob/main/DeepLabV3-Plus-MobileNet-Quantized.tflite) |
55
+ | DeepLabV3-Plus-MobileNet-Quantized | SA8295P ADP | SA8295P | QNN | 6.453 ms | 1 - 6 MB | INT8 | NPU | Use Export Script |
56
+ | DeepLabV3-Plus-MobileNet-Quantized | SA8650 (Proxy) | SA8650P Proxy | TFLITE | 4.161 ms | 0 - 14 MB | INT8 | NPU | [DeepLabV3-Plus-MobileNet-Quantized.tflite](https://huggingface.co/qualcomm/DeepLabV3-Plus-MobileNet-Quantized/blob/main/DeepLabV3-Plus-MobileNet-Quantized.tflite) |
57
+ | DeepLabV3-Plus-MobileNet-Quantized | SA8650 (Proxy) | SA8650P Proxy | QNN | 3.912 ms | 1 - 2 MB | INT8 | NPU | Use Export Script |
58
+ | DeepLabV3-Plus-MobileNet-Quantized | SA8775P ADP | SA8775P | TFLITE | 5.729 ms | 0 - 30 MB | INT8 | NPU | [DeepLabV3-Plus-MobileNet-Quantized.tflite](https://huggingface.co/qualcomm/DeepLabV3-Plus-MobileNet-Quantized/blob/main/DeepLabV3-Plus-MobileNet-Quantized.tflite) |
59
+ | DeepLabV3-Plus-MobileNet-Quantized | SA8775P ADP | SA8775P | QNN | 5.523 ms | 1 - 6 MB | INT8 | NPU | Use Export Script |
60
+ | DeepLabV3-Plus-MobileNet-Quantized | QCS8450 (Proxy) | QCS8450 Proxy | TFLITE | 4.831 ms | 0 - 37 MB | INT8 | NPU | [DeepLabV3-Plus-MobileNet-Quantized.tflite](https://huggingface.co/qualcomm/DeepLabV3-Plus-MobileNet-Quantized/blob/main/DeepLabV3-Plus-MobileNet-Quantized.tflite) |
61
+ | DeepLabV3-Plus-MobileNet-Quantized | QCS8450 (Proxy) | QCS8450 Proxy | QNN | 5.602 ms | 1 - 34 MB | INT8 | NPU | Use Export Script |
62
+ | DeepLabV3-Plus-MobileNet-Quantized | Snapdragon X Elite CRD | Snapdragon® X Elite | QNN | 4.26 ms | 1 - 1 MB | INT8 | NPU | Use Export Script |
63
 
64
 
65
 
 
125
  Device : Samsung Galaxy S23 (13)
126
  Runtime : TFLITE
127
  Estimated inference time (ms) : 4.2
128
+ Estimated peak memory usage (MB): [0, 6]
129
  Total # Ops : 136
130
  Compute Unit(s) : NPU (136 ops)
131
  ```
 
146
  import torch
147
 
148
  import qai_hub as hub
149
+ from qai_hub_models.models.deeplabv3_plus_mobilenet_quantized import Model
150
 
151
  # Load the model
152
+ torch_model = Model.from_pretrained()
153
 
154
  # Device
155
  device = hub.Device("Samsung Galaxy S23")
156
 
157
+ # Trace model
158
+ input_shape = torch_model.get_input_spec()
159
+ sample_inputs = torch_model.sample_inputs()
160
+
161
+ pt_model = torch.jit.trace(torch_model, [torch.tensor(data[0]) for _, data in sample_inputs.items()])
162
+
163
+ # Compile model on a specific device
164
+ compile_job = hub.submit_compile_job(
165
+ model=pt_model,
166
+ device=device,
167
+ input_specs=torch_model.get_input_spec(),
168
+ )
169
+
170
+ # Get target model to run on-device
171
+ target_model = compile_job.get_target_model()
172
 
173
  ```
174