mlboydaisuke commited on
Commit
5461104
·
verified ·
1 Parent(s): 4b2d2b9

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +12 -4
README.md CHANGED
@@ -7,7 +7,7 @@ tags:
7
  - on-device
8
  - image-segmentation
9
  ---
10
- # pidnet_s_cityscapes — ExecuTorch XNNPACK
11
 
12
  - **Source**: XuJiacong/PIDNet + oenpu/PIDNet_S_enlight_friendly_onnx weights
13
  - **License**: MIT
@@ -18,14 +18,22 @@ tags:
18
 
19
  All variants take and return fp32 tensors — swap the `.pte` file, keep your app code.
20
 
21
- | precision | file | size (MB) | parity vs fp32 eager (worst corr) | Mac median (ms)* |
22
  |-----------|------|-----------|------------------------------------|------------------|
23
  | fp32 | `pidnet_s_cityscapes_xnnpack_fp32.pte` | 30.5 | 1.000000 | 27.6 |
 
 
 
 
 
 
 
 
24
 
25
  \*Mac arm64, single process, median of 10 — a reference point for relative cost
26
  only, not a device number (torch eager fp32 on the same machine: 64.5 ms).
27
 
28
- ### Precisions that did not earn a slot
29
 
30
  - **fp16 is not shipped**: it comes out at 100% of the fp32 file (30.5 MB vs 30.5 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.
31
  - **int8 is not shipped**: measured in the units that matter for this model — fraction of pixels keeping their class: median 0.9802 over 10 real images, worst 0.8997.
@@ -43,5 +51,5 @@ XNNPACK delegate coverage (fp32): 96.3% (263/273 ops); ops left on the portable
43
 
44
  ## Conversion
45
 
46
- torch.export -> to_edge_transform_and_lower(XnnpackPartitioner) -> .pte
47
  (conversion scripts: [executorch-models](https://github.com/john-rocky/executorch-models))
 
7
  - on-device
8
  - image-segmentation
9
  ---
10
+ # pidnet_s_cityscapes — ExecuTorch
11
 
12
  - **Source**: XuJiacong/PIDNet + oenpu/PIDNet_S_enlight_friendly_onnx weights
13
  - **License**: MIT
 
18
 
19
  All variants take and return fp32 tensors — swap the `.pte` file, keep your app code.
20
 
21
+ | build | file | size (MB) | parity vs fp32 eager (worst corr) | Mac median (ms)* |
22
  |-----------|------|-----------|------------------------------------|------------------|
23
  | fp32 | `pidnet_s_cityscapes_xnnpack_fp32.pte` | 30.5 | 1.000000 | 27.6 |
24
+ | Core ML (fp16, iOS) | `pidnet_s_cityscapes_coreml_all.pte` | 15.8 | 0.999998 | 6.1 |
25
+
26
+
27
+ The Core ML build is the same graph lowered to Apple's Neural Engine instead of
28
+ XNNPACK, which is CPU-only. On an iPhone 17 Pro, Depth-Anything-V2-Small runs
29
+ 500.8 ms through XNNPACK and 42.7 ms through Core ML, at half the file size. It
30
+ computes in fp16 and is iOS-only; the XNNPACK files stay the portable option and
31
+ are what runs on Android.
32
 
33
  \*Mac arm64, single process, median of 10 — a reference point for relative cost
34
  only, not a device number (torch eager fp32 on the same machine: 64.5 ms).
35
 
36
+ ### Builds that did not earn a slot
37
 
38
  - **fp16 is not shipped**: it comes out at 100% of the fp32 file (30.5 MB vs 30.5 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.
39
  - **int8 is not shipped**: measured in the units that matter for this model — fraction of pixels keeping their class: median 0.9802 over 10 real images, worst 0.8997.
 
51
 
52
  ## Conversion
53
 
54
+ torch.export -> to_edge_transform_and_lower(partitioner) -> .pte
55
  (conversion scripts: [executorch-models](https://github.com/john-rocky/executorch-models))