mlboydaisuke commited on
Commit
9c3d81c
·
verified ·
1 Parent(s): 1db68c2

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +13 -5
README.md CHANGED
@@ -10,7 +10,7 @@ tags:
10
  base_model:
11
  - schirrmacher/ormbg
12
  ---
13
- # ormbg_isnet — ExecuTorch XNNPACK
14
 
15
  - **Source**: schirrmacher/ormbg
16
  - **License**: Apache-2.0
@@ -21,10 +21,18 @@ base_model:
21
 
22
  All variants take and return fp32 tensors — swap the `.pte` file, keep your app code.
23
 
24
- | precision | file | size (MB) | parity vs fp32 eager (worst corr) | Mac median (ms)* |
25
  |-----------|------|-----------|------------------------------------|------------------|
26
  | fp32 | `ormbg_isnet_xnnpack_fp32.pte` | 176.1 | 1.000000 | 121.7 |
27
  | int8 | `ormbg_isnet_xnnpack_int8.pte` | 44.3 | 0.999988 | 87.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: 375.5 ms).
@@ -33,9 +41,9 @@ only, not a device number (torch eager fp32 on the same machine: 375.5 ms).
33
 
34
  Correlation is a first filter. These are the numbers that decide:
35
 
36
- - **int8** — measured in the units that matter for this model: mask IoU at 0.5, median 0.9994 over five real images (worst 0.9916) against the fp32 build.
37
 
38
- ### Precisions that did not earn a slot
39
 
40
  - **fp16 is not shipped**: it comes out at 100% of the fp32 file (176.1 MB vs 176.1 MB), so it buys nothing. XNNPACK serializes convolution weights as fp32 no matter what dtype the graph carries, so on a conv-heavy model fp16 saves no disk and only adds cast operations. Reach for int8 here, not fp16.
41
 
@@ -52,5 +60,5 @@ XNNPACK delegate coverage (fp32): 100.0% (467/467 ops)
52
 
53
  ## Conversion
54
 
55
- torch.export -> to_edge_transform_and_lower(XnnpackPartitioner) -> .pte
56
  (conversion scripts: [executorch-models](https://github.com/john-rocky/executorch-models))
 
10
  base_model:
11
  - schirrmacher/ormbg
12
  ---
13
+ # ormbg_isnet — ExecuTorch
14
 
15
  - **Source**: schirrmacher/ormbg
16
  - **License**: Apache-2.0
 
21
 
22
  All variants take and return fp32 tensors — swap the `.pte` file, keep your app code.
23
 
24
+ | build | file | size (MB) | parity vs fp32 eager (worst corr) | Mac median (ms)* |
25
  |-----------|------|-----------|------------------------------------|------------------|
26
  | fp32 | `ormbg_isnet_xnnpack_fp32.pte` | 176.1 | 1.000000 | 121.7 |
27
  | int8 | `ormbg_isnet_xnnpack_int8.pte` | 44.3 | 0.999988 | 87.2 |
28
+ | Core ML (fp16, iOS) | `ormbg_isnet_coreml_all.pte` | 89.0 | 0.999999 | 28.5 |
29
+
30
+
31
+ The Core ML build is the same graph lowered to Apple's Neural Engine instead of
32
+ XNNPACK, which is CPU-only. On an iPhone 17 Pro, Depth-Anything-V2-Small runs
33
+ 500.8 ms through XNNPACK and 42.7 ms through Core ML, at half the file size. It
34
+ computes in fp16 and is iOS-only; the XNNPACK files stay the portable option and
35
+ are what runs on Android.
36
 
37
  \*Mac arm64, single process, median of 10 — a reference point for relative cost
38
  only, not a device number (torch eager fp32 on the same machine: 375.5 ms).
 
41
 
42
  Correlation is a first filter. These are the numbers that decide:
43
 
44
+ - **int8** — measured in the units that matter for this model — mask IoU at 0.5: median 0.9987 over 10 real images, worst 0.9868.
45
 
46
+ ### Builds that did not earn a slot
47
 
48
  - **fp16 is not shipped**: it comes out at 100% of the fp32 file (176.1 MB vs 176.1 MB), so it buys nothing. XNNPACK serializes convolution weights as fp32 no matter what dtype the graph carries, so on a conv-heavy model fp16 saves no disk and only adds cast operations. Reach for int8 here, not fp16.
49
 
 
60
 
61
  ## Conversion
62
 
63
+ torch.export -> to_edge_transform_and_lower(partitioner) -> .pte
64
  (conversion scripts: [executorch-models](https://github.com/john-rocky/executorch-models))