mlboydaisuke commited on
Commit
6db7144
·
verified ·
1 Parent(s): 10baaf5

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +18 -11
README.md CHANGED
@@ -11,29 +11,36 @@ base_model:
11
  ---
12
  # depth_anything_v2_small — ExecuTorch XNNPACK
13
 
14
- `depth_anything_v2_small_xnnpack_fp32.pte` (99.0 MB, fp32, XNNPACK-delegated)
15
-
16
  - **Source**: depth-anything/Depth-Anything-V2-Small-hf
17
  - **License**: Apache-2.0
18
  - **Input**: [[1, 3, 518, 518]] — RGB, ImageNet norm, 518x518
19
  - **Output**: relative inverse depth [1,518,518]
20
 
21
- ## Verification (Mac arm64, executorch 1.4.0, torch 2.13.0)
 
 
 
 
 
 
 
 
 
 
 
22
 
23
- Parity vs torch fp32 eager on random input:
 
 
 
24
 
25
  | output | shape | max_abs_diff | corr |
26
  |--------|-------|--------------|------|
27
- | 0 | [1, 518, 518] | 6.914e-06 | 1.000000 |
28
 
29
- Median latency over 10 runs (single Mac process, reference only device numbers to follow):
30
- ExecuTorch 173.7 ms vs torch eager 88.0 ms.
31
 
32
  ## Conversion
33
 
34
  torch.export -> to_edge_transform_and_lower(XnnpackPartitioner) -> .pte
35
  (conversion scripts: [executorch-models](https://github.com/john-rocky/executorch-models))
36
-
37
-
38
- ---
39
- Part of [executorch-models](https://github.com/john-rocky/executorch-models) — a verified .pte zoo for ExecuTorch. Conversion scripts and all models are indexed there.
 
11
  ---
12
  # depth_anything_v2_small — ExecuTorch XNNPACK
13
 
 
 
14
  - **Source**: depth-anything/Depth-Anything-V2-Small-hf
15
  - **License**: Apache-2.0
16
  - **Input**: [[1, 3, 518, 518]] — RGB, ImageNet norm, 518x518
17
  - **Output**: relative inverse depth [1,518,518]
18
 
19
+ ## Variants
20
+
21
+ All variants take and return fp32 tensors — swap the `.pte` file, keep your app code.
22
+
23
+ | precision | file | size (MB) | parity vs fp32 eager (worst corr) | Mac median (ms)* |
24
+ |-----------|------|-----------|------------------------------------|------------------|
25
+ | fp32 | `depth_anything_v2_small_xnnpack_fp32.pte` | 99.0 | 1.000000 | 167.3 |
26
+ | fp16 | `depth_anything_v2_small_xnnpack_fp16.pte` | 55.5 | 0.999992 | 289.7 |
27
+ | int8 (dynamic) | `depth_anything_v2_small_xnnpack_int8.pte` | 35.5 | 0.999979 | 166.2 |
28
+
29
+ \*Mac arm64, single process, median of 10 — a reference point for relative cost
30
+ only, not a device number (torch eager fp32 on the same machine: 85.0 ms).
31
 
32
+ ## Verification (executorch 1.4.0, torch 2.13.0)
33
+
34
+ Parity is measured against the fp32 eager model on random input; `corr` is
35
+ the correlation over all elements of each output tensor.
36
 
37
  | output | shape | max_abs_diff | corr |
38
  |--------|-------|--------------|------|
39
+ | 0 | [1, 518, 518] | 4.768e-06 | 1.000000 |
40
 
41
+ XNNPACK delegate coverage (fp32): 73.4% (482/657 ops); ops left on the portable kernels: `aten.expand_copy.default` x49, `aten.native_layer_norm.default` x28, `aten.mul.Scalar` x24, `aten.logical_not.default` x24, `aten.eq.Scalar` x12, `aten.full_like.default` x12, `aten.any.dim` x12, `aten.where.self` x12, `dim_order_ops._to_dim_order_copy.default` x1, `aten.squeeze_copy.dims` x1
 
42
 
43
  ## Conversion
44
 
45
  torch.export -> to_edge_transform_and_lower(XnnpackPartitioner) -> .pte
46
  (conversion scripts: [executorch-models](https://github.com/john-rocky/executorch-models))