Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
@@ -35,24 +35,24 @@ More details on model performance across various devices, can be found
|
|
35 |
|
36 |
| Model | Device | Chipset | Target Runtime | Inference Time (ms) | Peak Memory Range (MB) | Precision | Primary Compute Unit | Target Model
|
37 |
|---|---|---|---|---|---|---|---|---|
|
38 |
-
| SAMDecoder | Samsung Galaxy S23 | Snapdragon® 8 Gen 2 | TFLITE |
|
39 |
-
| SAMDecoder | Samsung Galaxy S24 | Snapdragon® 8 Gen 3 | TFLITE | 20.
|
40 |
-
| SAMDecoder | Snapdragon 8 Elite QRD | Snapdragon® 8 Elite | TFLITE |
|
41 |
-
| SAMDecoder | QCS8550 (Proxy) | QCS8550 Proxy | TFLITE | 29.
|
42 |
-
| SAMDecoder | SA8255 (Proxy) | SA8255P Proxy | TFLITE |
|
43 |
-
| SAMDecoder |
|
44 |
-
| SAMDecoder | SA8650 (Proxy) | SA8650P Proxy | TFLITE | 29.
|
45 |
-
| SAMDecoder |
|
46 |
-
|
|
47 |
-
| SAMEncoder | Samsung Galaxy
|
48 |
-
| SAMEncoder |
|
49 |
-
| SAMEncoder |
|
50 |
-
| SAMEncoder |
|
51 |
-
| SAMEncoder | SA8255 (Proxy) | SA8255P Proxy | TFLITE |
|
52 |
-
| SAMEncoder |
|
53 |
-
| SAMEncoder | SA8650 (Proxy) | SA8650P Proxy | TFLITE |
|
54 |
-
| SAMEncoder |
|
55 |
-
| SAMEncoder | QCS8450 (Proxy) | QCS8450 Proxy | TFLITE |
|
56 |
|
57 |
|
58 |
|
@@ -117,8 +117,8 @@ Profiling Results
|
|
117 |
SAMDecoder
|
118 |
Device : Samsung Galaxy S23 (13)
|
119 |
Runtime : TFLITE
|
120 |
-
Estimated inference time (ms) : 29.
|
121 |
-
Estimated peak memory usage (MB): [4,
|
122 |
Total # Ops : 337
|
123 |
Compute Unit(s) : NPU (337 ops)
|
124 |
|
@@ -126,8 +126,8 @@ Compute Unit(s) : NPU (337 ops)
|
|
126 |
SAMEncoder
|
127 |
Device : Samsung Galaxy S23 (13)
|
128 |
Runtime : TFLITE
|
129 |
-
Estimated inference time (ms) :
|
130 |
-
Estimated peak memory usage (MB): [123,
|
131 |
Total # Ops : 818
|
132 |
Compute Unit(s) : GPU (36 ops) CPU (782 ops)
|
133 |
```
|
@@ -148,11 +148,12 @@ in memory using the `jit.trace` and then call the `submit_compile_job` API.
|
|
148 |
import torch
|
149 |
|
150 |
import qai_hub as hub
|
151 |
-
from qai_hub_models.models.sam import
|
152 |
|
153 |
# Load the model
|
154 |
-
|
155 |
-
|
|
|
156 |
|
157 |
# Device
|
158 |
device = hub.Device("Samsung Galaxy S23")
|
|
|
35 |
|
36 |
| Model | Device | Chipset | Target Runtime | Inference Time (ms) | Peak Memory Range (MB) | Precision | Primary Compute Unit | Target Model
|
37 |
|---|---|---|---|---|---|---|---|---|
|
38 |
+
| SAMDecoder | Samsung Galaxy S23 | Snapdragon® 8 Gen 2 | TFLITE | 29.311 ms | 4 - 40 MB | FP16 | NPU | [Segment-Anything-Model.tflite](https://huggingface.co/qualcomm/Segment-Anything-Model/blob/main/SAMDecoder.tflite) |
|
39 |
+
| SAMDecoder | Samsung Galaxy S24 | Snapdragon® 8 Gen 3 | TFLITE | 20.843 ms | 4 - 119 MB | FP16 | NPU | [Segment-Anything-Model.tflite](https://huggingface.co/qualcomm/Segment-Anything-Model/blob/main/SAMDecoder.tflite) |
|
40 |
+
| SAMDecoder | Snapdragon 8 Elite QRD | Snapdragon® 8 Elite | TFLITE | 20.649 ms | 3 - 128 MB | FP16 | NPU | [Segment-Anything-Model.tflite](https://huggingface.co/qualcomm/Segment-Anything-Model/blob/main/SAMDecoder.tflite) |
|
41 |
+
| SAMDecoder | QCS8550 (Proxy) | QCS8550 Proxy | TFLITE | 29.453 ms | 4 - 41 MB | FP16 | NPU | [Segment-Anything-Model.tflite](https://huggingface.co/qualcomm/Segment-Anything-Model/blob/main/SAMDecoder.tflite) |
|
42 |
+
| SAMDecoder | SA8255 (Proxy) | SA8255P Proxy | TFLITE | 29.485 ms | 4 - 36 MB | FP16 | NPU | [Segment-Anything-Model.tflite](https://huggingface.co/qualcomm/Segment-Anything-Model/blob/main/SAMDecoder.tflite) |
|
43 |
+
| SAMDecoder | SA8295P ADP | SA8295P | TFLITE | 36.583 ms | 4 - 114 MB | FP16 | NPU | [Segment-Anything-Model.tflite](https://huggingface.co/qualcomm/Segment-Anything-Model/blob/main/SAMDecoder.tflite) |
|
44 |
+
| SAMDecoder | SA8650 (Proxy) | SA8650P Proxy | TFLITE | 29.064 ms | 4 - 37 MB | FP16 | NPU | [Segment-Anything-Model.tflite](https://huggingface.co/qualcomm/Segment-Anything-Model/blob/main/SAMDecoder.tflite) |
|
45 |
+
| SAMDecoder | QCS8450 (Proxy) | QCS8450 Proxy | TFLITE | 33.135 ms | 4 - 126 MB | FP16 | NPU | [Segment-Anything-Model.tflite](https://huggingface.co/qualcomm/Segment-Anything-Model/blob/main/SAMDecoder.tflite) |
|
46 |
+
| SAMEncoder | Samsung Galaxy S23 | Snapdragon® 8 Gen 2 | TFLITE | 10369.27 ms | 123 - 126 MB | FP32 | CPU | [Segment-Anything-Model.tflite](https://huggingface.co/qualcomm/Segment-Anything-Model/blob/main/SAMEncoder.tflite) |
|
47 |
+
| SAMEncoder | Samsung Galaxy S24 | Snapdragon® 8 Gen 3 | TFLITE | 9136.859 ms | 91 - 1603 MB | FP32 | CPU | [Segment-Anything-Model.tflite](https://huggingface.co/qualcomm/Segment-Anything-Model/blob/main/SAMEncoder.tflite) |
|
48 |
+
| SAMEncoder | Snapdragon 8 Elite QRD | Snapdragon® 8 Elite | TFLITE | 6694.41 ms | 110 - 1589 MB | FP32 | CPU | [Segment-Anything-Model.tflite](https://huggingface.co/qualcomm/Segment-Anything-Model/blob/main/SAMEncoder.tflite) |
|
49 |
+
| SAMEncoder | QCS8550 (Proxy) | QCS8550 Proxy | TFLITE | 10714.354 ms | 122 - 381 MB | FP32 | CPU | [Segment-Anything-Model.tflite](https://huggingface.co/qualcomm/Segment-Anything-Model/blob/main/SAMEncoder.tflite) |
|
50 |
+
| SAMEncoder | SA7255P ADP | SA7255P | TFLITE | 17192.024 ms | 125 - 1597 MB | FP32 | CPU | [Segment-Anything-Model.tflite](https://huggingface.co/qualcomm/Segment-Anything-Model/blob/main/SAMEncoder.tflite) |
|
51 |
+
| SAMEncoder | SA8255 (Proxy) | SA8255P Proxy | TFLITE | 11081.197 ms | 124 - 127 MB | FP32 | CPU | [Segment-Anything-Model.tflite](https://huggingface.co/qualcomm/Segment-Anything-Model/blob/main/SAMEncoder.tflite) |
|
52 |
+
| SAMEncoder | SA8295P ADP | SA8295P | TFLITE | 10359.771 ms | 124 - 1654 MB | FP32 | CPU | [Segment-Anything-Model.tflite](https://huggingface.co/qualcomm/Segment-Anything-Model/blob/main/SAMEncoder.tflite) |
|
53 |
+
| SAMEncoder | SA8650 (Proxy) | SA8650P Proxy | TFLITE | 10872.614 ms | 118 - 125 MB | FP32 | CPU | [Segment-Anything-Model.tflite](https://huggingface.co/qualcomm/Segment-Anything-Model/blob/main/SAMEncoder.tflite) |
|
54 |
+
| SAMEncoder | SA8775P ADP | SA8775P | TFLITE | 13361.634 ms | 124 - 1596 MB | FP32 | CPU | [Segment-Anything-Model.tflite](https://huggingface.co/qualcomm/Segment-Anything-Model/blob/main/SAMEncoder.tflite) |
|
55 |
+
| SAMEncoder | QCS8450 (Proxy) | QCS8450 Proxy | TFLITE | 16830.94 ms | 82 - 1648 MB | FP32 | CPU | [Segment-Anything-Model.tflite](https://huggingface.co/qualcomm/Segment-Anything-Model/blob/main/SAMEncoder.tflite) |
|
56 |
|
57 |
|
58 |
|
|
|
117 |
SAMDecoder
|
118 |
Device : Samsung Galaxy S23 (13)
|
119 |
Runtime : TFLITE
|
120 |
+
Estimated inference time (ms) : 29.3
|
121 |
+
Estimated peak memory usage (MB): [4, 40]
|
122 |
Total # Ops : 337
|
123 |
Compute Unit(s) : NPU (337 ops)
|
124 |
|
|
|
126 |
SAMEncoder
|
127 |
Device : Samsung Galaxy S23 (13)
|
128 |
Runtime : TFLITE
|
129 |
+
Estimated inference time (ms) : 10369.3
|
130 |
+
Estimated peak memory usage (MB): [123, 126]
|
131 |
Total # Ops : 818
|
132 |
Compute Unit(s) : GPU (36 ops) CPU (782 ops)
|
133 |
```
|
|
|
148 |
import torch
|
149 |
|
150 |
import qai_hub as hub
|
151 |
+
from qai_hub_models.models.sam import Model
|
152 |
|
153 |
# Load the model
|
154 |
+
model = Model.from_pretrained()
|
155 |
+
get_sam_decoder()_model = model.get_sam_decoder()
|
156 |
+
get_sam_encoder()_model = model.get_sam_encoder()
|
157 |
|
158 |
# Device
|
159 |
device = hub.Device("Samsung Galaxy S23")
|