File size: 1,185 Bytes
7c7d2c5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
e1c5e63
7c7d2c5
7fbd2b0
7c7d2c5
 
 
 
e1c5e63
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
---
emoji: πŸš€
colorFrom: indigo
colorTo: purple

tags:
- depth-estimation
- mobile-optimized
- transformer
- onnx
- qualcomm
---

# πŸ” Depth Anything V2 - Ultra Fast

**State-of-the-Art Depth Estimation Meets Mobile Efficiency**  
*Optimized for Snapdragon NPUs with 2X Speed Boost*
### ⚑ Benchmark Comparison

- Input resolution:518x518
Snapdragon 8 Gen2 (NPU Acceleration)
|Metric | depth_anything_v2.onnx | depth_anything_v2_mha.onnx | Improvement|
|-------|--------|-------------|--------|
|Latency | 152ms | 73ms | 2.08Γ—|
|Memory | 102MB | 45MB | 2.26Γ—|

### benchmark method
please intall qai_hub first


```
import qai_hub as hub

compile_job = hub.submit_compile_job(
    model="depth_anything_v2.onnx",
    device=hub.Device("Samsung Galaxy S23 (Family)"),
)
assert isinstance(compile_job, hub.CompileJob)

profile_job = hub.submit_profile_job(
    model=compile_job.get_target_model(),
    device=hub.Device("Samsung Galaxy S23 (Family)"),
)
```

### reference
- [qaihub](https://aihub.qualcomm.com/)
- [qai depth anything result](https://aihub.qualcomm.com/mobile/models/depth_anything_v2?domain=Computer+Vision&useCase=Depth+Estimation&chipsets=Snapdragon+8+Gen+2)