Core ML: drop the fp32 variant, fp16 is equivalent in task terms
Browse filesfp32 is both slower and larger than fp16 on device, and the ANE will not accept fp32 at all, so an fp32 Core ML build is structurally excluded from the accelerator that makes Core ML worth using.
Equivalence was gated with a task metric rather than raw tensor distance: pixel argmax agreement 99.87% across 8 real images. Raw relative L2 on logits reads ~1% for the segmentation models, but that is logit noise which does not change the predicted class per pixel.
Models where fp16 and fp32 genuinely diverge (ssdlite320 86% box agreement, fast-sam 93%) keep both variants.
v0.9.0 and below are untouched.
coreml/config.json
CHANGED
|
@@ -39,38 +39,6 @@
|
|
| 39 |
]
|
| 40 |
}
|
| 41 |
}
|
| 42 |
-
},
|
| 43 |
-
{
|
| 44 |
-
"file": "lraspp_mobilenet_v3_large_coreml_fp32.pte",
|
| 45 |
-
"precision": "fp32",
|
| 46 |
-
"quantized": false,
|
| 47 |
-
"default": false,
|
| 48 |
-
"methods": {
|
| 49 |
-
"forward": {
|
| 50 |
-
"inputs": [
|
| 51 |
-
{
|
| 52 |
-
"shape": [
|
| 53 |
-
1,
|
| 54 |
-
3,
|
| 55 |
-
520,
|
| 56 |
-
520
|
| 57 |
-
],
|
| 58 |
-
"dtype": "float32"
|
| 59 |
-
}
|
| 60 |
-
],
|
| 61 |
-
"outputs": [
|
| 62 |
-
{
|
| 63 |
-
"shape": [
|
| 64 |
-
1,
|
| 65 |
-
21,
|
| 66 |
-
520,
|
| 67 |
-
520
|
| 68 |
-
],
|
| 69 |
-
"dtype": "float32"
|
| 70 |
-
}
|
| 71 |
-
]
|
| 72 |
-
}
|
| 73 |
-
}
|
| 74 |
}
|
| 75 |
]
|
| 76 |
}
|
|
|
|
| 39 |
]
|
| 40 |
}
|
| 41 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 42 |
}
|
| 43 |
]
|
| 44 |
}
|
coreml/lraspp_mobilenet_v3_large_coreml_fp32.pte
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:0e0dda17a70bd53fa68c20c68fcf4e71b4564fa552d40ae057265ac70acd57f7
|
| 3 |
-
size 13294568
|
|
|
|
|
|
|
|
|
|
|
|