Bartosz Hanc commited on
Commit
f66a260
·
1 Parent(s): 7570e98

Add Depth Anything 3 Small ExecuTorch models

Browse files
.gitattributes CHANGED
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ *.pte filter=lfs diff=lfs merge=lfs -text
README.md CHANGED
@@ -1,3 +1,47 @@
1
  ---
2
  license: apache-2.0
 
 
 
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
  license: apache-2.0
3
+ pipeline_tag: depth-estimation
4
+ library_name: executorch
5
+ base_model: depth-anything/DA3-SMALL
6
  ---
7
+
8
+ # depth-anything-v3
9
+
10
+ This repository hosts **Depth Anything 3 Small** (single-image depth estimation)
11
+ exported for the
12
+ [React Native ExecuTorch](https://www.npmjs.com/package/react-native-executorch)
13
+ library as ExecuTorch `.pte` programs, ready to run on device.
14
+
15
+ Upstream model: [depth-anything/DA3-SMALL](https://huggingface.co/depth-anything/DA3-SMALL),
16
+ revision `e08cab65ca0ec38e7826075418411ab90cab4da3`.
17
+
18
+ ## Variants
19
+
20
+ | Path | Backend | Precision |
21
+ | --- | --- | --- |
22
+ | `small/coreml/depth_anything_v3_small_coreml_fp16.pte` | coreml | fp16 |
23
+ | `small/xnnpack/depth_anything_v3_small_xnnpack_fp32.pte` | xnnpack | fp32 |
24
+ | `small/xnnpack/depth_anything_v3_small_xnnpack_int8.pte` | xnnpack | int8 |
25
+
26
+ ## Repository structure
27
+
28
+ ```
29
+ config.json 39 B
30
+ small/coreml/config.json 928 B
31
+ small/coreml/depth_anything_v3_small_coreml_fp16.pte 70.9 MB
32
+ small/xnnpack/config.json 1.6 kB
33
+ small/xnnpack/depth_anything_v3_small_xnnpack_fp32.pte 106.5 MB
34
+ small/xnnpack/depth_anything_v3_small_xnnpack_int8.pte 40.7 MB
35
+ ```
36
+
37
+ ## Compatibility
38
+
39
+ These files are published for the **ExecuTorch v1.4.1** runtime. ExecuTorch
40
+ gives no forward compatibility guarantee, so an older runtime may fail to load
41
+ them.
42
+
43
+ For React Native ExecuTorch model loading, see the
44
+ [documentation](https://docs.swmansion.com/react-native-executorch/docs/fundamentals/downloading-models).
45
+ To load these files in your own runtime, read the
46
+ [compatibility note](https://github.com/pytorch/executorch/blob/main/runtime/COMPATIBILITY.md)
47
+ first.
config.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ {
2
+ "modelName": "depth-anything-v3"
3
+ }
small/coreml/config.json ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "$schema": "https://huggingface.co/software-mansion/react-native-executorch-spec/resolve/main/config.schema.json",
3
+ "model": "depth_anything_v3_small",
4
+ "family": "depth-anything-v3",
5
+ "capabilities": [
6
+ "depth-estimation"
7
+ ],
8
+ "backend": "coreml",
9
+ "license": "apache-2.0",
10
+ "variants": [
11
+ {
12
+ "file": "depth_anything_v3_small_coreml_fp16.pte",
13
+ "precision": "fp16",
14
+ "quantized": false,
15
+ "default": true,
16
+ "methods": {
17
+ "forward": {
18
+ "inputs": [
19
+ {
20
+ "shape": [
21
+ 1,
22
+ 3,
23
+ 518,
24
+ 518
25
+ ],
26
+ "dtype": "float32"
27
+ }
28
+ ],
29
+ "outputs": [
30
+ {
31
+ "shape": [
32
+ 1,
33
+ 518,
34
+ 518
35
+ ],
36
+ "dtype": "float32"
37
+ }
38
+ ]
39
+ }
40
+ }
41
+ }
42
+ ]
43
+ }
small/coreml/depth_anything_v3_small_coreml_fp16.pte ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:308755783a372f45a1f682950833ba7559da5122a297c01e1e8848d1aeff9148
3
+ size 70865495
small/xnnpack/config.json ADDED
@@ -0,0 +1,74 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "$schema": "https://huggingface.co/software-mansion/react-native-executorch-spec/resolve/main/config.schema.json",
3
+ "model": "depth_anything_v3_small",
4
+ "family": "depth-anything-v3",
5
+ "capabilities": [
6
+ "depth-estimation"
7
+ ],
8
+ "backend": "xnnpack",
9
+ "license": "apache-2.0",
10
+ "variants": [
11
+ {
12
+ "file": "depth_anything_v3_small_xnnpack_fp32.pte",
13
+ "precision": "fp32",
14
+ "quantized": false,
15
+ "default": true,
16
+ "methods": {
17
+ "forward": {
18
+ "inputs": [
19
+ {
20
+ "shape": [
21
+ 1,
22
+ 3,
23
+ 518,
24
+ 518
25
+ ],
26
+ "dtype": "float32"
27
+ }
28
+ ],
29
+ "outputs": [
30
+ {
31
+ "shape": [
32
+ 1,
33
+ 518,
34
+ 518
35
+ ],
36
+ "dtype": "float32"
37
+ }
38
+ ]
39
+ }
40
+ }
41
+ },
42
+ {
43
+ "file": "depth_anything_v3_small_xnnpack_int8.pte",
44
+ "precision": "int8",
45
+ "quantized": true,
46
+ "default": false,
47
+ "methods": {
48
+ "forward": {
49
+ "inputs": [
50
+ {
51
+ "shape": [
52
+ 1,
53
+ 3,
54
+ 518,
55
+ 518
56
+ ],
57
+ "dtype": "float32"
58
+ }
59
+ ],
60
+ "outputs": [
61
+ {
62
+ "shape": [
63
+ 1,
64
+ 518,
65
+ 518
66
+ ],
67
+ "dtype": "float32"
68
+ }
69
+ ]
70
+ }
71
+ }
72
+ }
73
+ ]
74
+ }
small/xnnpack/depth_anything_v3_small_xnnpack_fp32.pte ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8d276b1e3ab29218872d301b056434e644c33efc1654c27c3c2f47b864396691
3
+ size 106537608
small/xnnpack/depth_anything_v3_small_xnnpack_int8.pte ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2c8a1e7f868ae0359a0ae10e70c0d1f3576b3df0f9f377a2536d966cd8ff0103
3
+ size 40661896