Update README.md
Browse files
README.md
CHANGED
|
@@ -17,10 +17,32 @@ tags:
|
|
| 17 |
*Optimized for Snapdragon NPUs with 2X Speed Boost*
|
| 18 |
### ⚡ Benchmark Comparison
|
| 19 |
|
| 20 |
-
|
| 21 |
Snapdragon 8 Gen2 (NPU Acceleration)
|
| 22 |
|Metric | depth_anything_v2.onnx | depth_anything_v2_mha.onnx | Improvement|
|
| 23 |
|-------|--------|-------------|--------|
|
| 24 |
|Latency | 152ms | 73ms | 2.08×|
|
| 25 |
|Memory | 102MB | 45MB | 2.26×|
|
| 26 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 17 |
*Optimized for Snapdragon NPUs with 2X Speed Boost*
|
| 18 |
### ⚡ Benchmark Comparison
|
| 19 |
|
| 20 |
+
- Input resolution:518x518
|
| 21 |
Snapdragon 8 Gen2 (NPU Acceleration)
|
| 22 |
|Metric | depth_anything_v2.onnx | depth_anything_v2_mha.onnx | Improvement|
|
| 23 |
|-------|--------|-------------|--------|
|
| 24 |
|Latency | 152ms | 73ms | 2.08×|
|
| 25 |
|Memory | 102MB | 45MB | 2.26×|
|
| 26 |
|
| 27 |
+
### benchmark method
|
| 28 |
+
please intall qai_hub first
|
| 29 |
+
|
| 30 |
+
|
| 31 |
+
```
|
| 32 |
+
import qai_hub as hub
|
| 33 |
+
|
| 34 |
+
compile_job = hub.submit_compile_job(
|
| 35 |
+
model="depth_anything_v2.onnx",
|
| 36 |
+
device=hub.Device("Samsung Galaxy S23 (Family)"),
|
| 37 |
+
)
|
| 38 |
+
assert isinstance(compile_job, hub.CompileJob)
|
| 39 |
+
|
| 40 |
+
profile_job = hub.submit_profile_job(
|
| 41 |
+
model=compile_job.get_target_model(),
|
| 42 |
+
device=hub.Device("Samsung Galaxy S23 (Family)"),
|
| 43 |
+
)
|
| 44 |
+
```
|
| 45 |
+
|
| 46 |
+
### reference
|
| 47 |
+
- [qaihub](https://aihub.qualcomm.com/)
|
| 48 |
+
- [qai depth anything result](https://aihub.qualcomm.com/mobile/models/depth_anything_v2?domain=Computer+Vision&useCase=Depth+Estimation&chipsets=Snapdragon+8+Gen+2)
|