Depth Estimation
Core ML
core-ml
depth-anything
depth-anything-3
depth-anything-3-small
da3
da3-small
multi-view
multi-view-depth
multi-view-geometry
pose-conditioned
camera-pose
pose-estimation
3d-reconstruction
3d-scanning
arkit
ios
iphone
iphone-12-pro
iphone-17-pro
apple-silicon
apple-neural-engine
ane
on-device
swift
Add the model list and the license
Browse files- README.md +20 -8
- models.json +16 -12
README.md
CHANGED
|
@@ -51,12 +51,12 @@ input size are changed for speed. The weights are the original ones in FP16.
|
|
| 51 |
|
| 52 |
## Which file should I choose?
|
| 53 |
|
| 54 |
-
| File | Views | Input | What is changed | Min iOS | Size |
|
| 55 |
-
|---|---|---|---|---|---|
|
| 56 |
-
| [`DA3-Small-3views-392-fast`](https://huggingface.co/shu223/Depth-Anything-3-Small-MultiView-CoreML/tree/main/models/DA3-Small-3views-392-fast.mlpackage) | 3 | 392 × 392 | 392 input, attention in 8 slices, depth head rewritten. **Recommended.** | 18 | 72 MB |
|
| 57 |
-
| [`DA3-Small-2views-392-fast`](https://huggingface.co/shu223/Depth-Anything-3-Small-MultiView-CoreML/tree/main/models/DA3-Small-2views-392-fast.mlpackage) | 2 | 392 × 392 | The same speed-ups with 2 views. Fastest. | 18 | 72 MB |
|
| 58 |
-
| [`DA3-Small-3views-504-sliced`](https://huggingface.co/shu223/Depth-Anything-3-Small-MultiView-CoreML/tree/main/models/DA3-Small-3views-504-sliced.mlpackage) | 3 | 504 × 504 | Attention in 16 slices only. Same output as the original model. | 18 | 87 MB |
|
| 59 |
-
| [`DA3-Small-3views-504`](https://huggingface.co/shu223/Depth-Anything-3-Small-MultiView-CoreML/tree/main/models/DA3-Small-3views-504.mlpackage) | 3 | 504 × 504 | Nothing. The plain conversion, for comparison and for iOS 17. | 17 | 87 MB |
|
| 60 |
|
| 61 |
- Start with **`DA3-Small-3views-392-fast`**. It is the one to use for scanning with ARKit.
|
| 62 |
- Use **`DA3-Small-2views-392-fast`** if you only have two photos or need the shortest time per inference.
|
|
@@ -67,6 +67,18 @@ input size are changed for speed. The weights are the original ones in FP16.
|
|
| 67 |
at object edges (the pose output does not change). With ARKit poses, the metric scale from the 392 files differs
|
| 68 |
from the 504 sliced file by a median of 2.6% (3 views) and 4.5% (2 views).
|
| 69 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 70 |
## Speed on iPhone
|
| 71 |
|
| 72 |
Median time of one inference (all views at once). Measured on two devices only. The conditions differ between rows,
|
|
@@ -169,8 +181,8 @@ positions you passed with Umeyama's method (a similarity transform), and divide
|
|
| 169 |
## Downloading from an app
|
| 170 |
|
| 171 |
`models.json` at the top of this repository lists every file with the size and SHA-256 of each file inside its
|
| 172 |
-
package, the input size, the number of views
|
| 173 |
-
one package from `https://huggingface.co/shu223/Depth-Anything-3-Small-MultiView-CoreML/resolve/main/<path>`, check
|
| 174 |
them and compile the package on the device. Compiling the `.mlpackage` on the device works on iOS 27 (checked on an
|
| 175 |
iPhone 12 Pro and the simulator).
|
| 176 |
|
|
|
|
| 51 |
|
| 52 |
## Which file should I choose?
|
| 53 |
|
| 54 |
+
| File | Views | Input | What is changed | Min iOS | Size | Version |
|
| 55 |
+
|---|---|---|---|---|---|---|
|
| 56 |
+
| [`DA3-Small-3views-392-fast`](https://huggingface.co/shu223/Depth-Anything-3-Small-MultiView-CoreML/tree/main/models/DA3-Small-3views-392-fast.mlpackage) | 3 | 392 × 392 | 392 input, attention in 8 slices, depth head rewritten. **Recommended.** | 18 | 72 MB | 1 |
|
| 57 |
+
| [`DA3-Small-2views-392-fast`](https://huggingface.co/shu223/Depth-Anything-3-Small-MultiView-CoreML/tree/main/models/DA3-Small-2views-392-fast.mlpackage) | 2 | 392 × 392 | The same speed-ups with 2 views. Fastest. | 18 | 72 MB | 1 |
|
| 58 |
+
| [`DA3-Small-3views-504-sliced`](https://huggingface.co/shu223/Depth-Anything-3-Small-MultiView-CoreML/tree/main/models/DA3-Small-3views-504-sliced.mlpackage) | 3 | 504 × 504 | Attention in 16 slices only. Same output as the original model. | 18 | 87 MB | 1 |
|
| 59 |
+
| [`DA3-Small-3views-504`](https://huggingface.co/shu223/Depth-Anything-3-Small-MultiView-CoreML/tree/main/models/DA3-Small-3views-504.mlpackage) | 3 | 504 × 504 | Nothing. The plain conversion, for comparison and for iOS 17. | 17 | 87 MB | 1 |
|
| 60 |
|
| 61 |
- Start with **`DA3-Small-3views-392-fast`**. It is the one to use for scanning with ARKit.
|
| 62 |
- Use **`DA3-Small-2views-392-fast`** if you only have two photos or need the shortest time per inference.
|
|
|
|
| 67 |
at object edges (the pose output does not change). With ARKit poses, the metric scale from the 392 files differs
|
| 68 |
from the 504 sliced file by a median of 2.6% (3 views) and 4.5% (2 views).
|
| 69 |
|
| 70 |
+
## Versions
|
| 71 |
+
|
| 72 |
+
Each file carries its version in the Core ML metadata (`versionString`, `MLModelMetadataKey.versionString` in Swift),
|
| 73 |
+
and `models.json` lists the same value as `version`. When a file is fixed, it is uploaded again under the same name
|
| 74 |
+
with the version raised by one, so an app can compare the version it downloaded with the one in `models.json` and
|
| 75 |
+
download the file again. Only the `model.mlmodel` inside the package changes when the version alone is written; the
|
| 76 |
+
weights stay the same.
|
| 77 |
+
|
| 78 |
+
| Version | Files | What changed |
|
| 79 |
+
|---|---|---|
|
| 80 |
+
| 1 | All | The first version. |
|
| 81 |
+
|
| 82 |
## Speed on iPhone
|
| 83 |
|
| 84 |
Median time of one inference (all views at once). Measured on two devices only. The conditions differ between rows,
|
|
|
|
| 181 |
## Downloading from an app
|
| 182 |
|
| 183 |
`models.json` at the top of this repository lists every file with the size and SHA-256 of each file inside its
|
| 184 |
+
package, the input size, the number of views, the minimum iOS version and the version of the file. An app can read
|
| 185 |
+
it, download the files of one package from `https://huggingface.co/shu223/Depth-Anything-3-Small-MultiView-CoreML/resolve/main/<path>`, check
|
| 186 |
them and compile the package on the device. Compiling the `.mlpackage` on the device works on iOS 27 (checked on an
|
| 187 |
iPhone 12 Pro and the simulator).
|
| 188 |
|
models.json
CHANGED
|
@@ -8,8 +8,8 @@
|
|
| 8 |
"files": [
|
| 9 |
{
|
| 10 |
"path": "Data/com.apple.CoreML/model.mlmodel",
|
| 11 |
-
"bytes":
|
| 12 |
-
"sha256": "
|
| 13 |
},
|
| 14 |
{
|
| 15 |
"path": "Data/com.apple.CoreML/weights/weight.bin",
|
|
@@ -27,7 +27,8 @@
|
|
| 27 |
"requiresPoses": true,
|
| 28 |
"minimumOS": "18.0",
|
| 29 |
"recommended": true,
|
| 30 |
-
"notes": "All speed-ups combined: input 392, global attention sliced into 8, rewritten head. The smallest and fastest of the 3-view models; runs on iPhone 12 Pro and 17 Pro."
|
|
|
|
| 31 |
},
|
| 32 |
{
|
| 33 |
"id": "DA3-Small-2views-392-fast",
|
|
@@ -36,8 +37,8 @@
|
|
| 36 |
"files": [
|
| 37 |
{
|
| 38 |
"path": "Data/com.apple.CoreML/model.mlmodel",
|
| 39 |
-
"bytes":
|
| 40 |
-
"sha256": "
|
| 41 |
},
|
| 42 |
{
|
| 43 |
"path": "Data/com.apple.CoreML/weights/weight.bin",
|
|
@@ -55,7 +56,8 @@
|
|
| 55 |
"requiresPoses": true,
|
| 56 |
"minimumOS": "18.0",
|
| 57 |
"recommended": false,
|
| 58 |
-
"notes": "The same speed-ups with 2 views."
|
|
|
|
| 59 |
},
|
| 60 |
{
|
| 61 |
"id": "DA3-Small-3views-504-sliced",
|
|
@@ -64,8 +66,8 @@
|
|
| 64 |
"files": [
|
| 65 |
{
|
| 66 |
"path": "Data/com.apple.CoreML/model.mlmodel",
|
| 67 |
-
"bytes":
|
| 68 |
-
"sha256": "
|
| 69 |
},
|
| 70 |
{
|
| 71 |
"path": "Data/com.apple.CoreML/weights/weight.bin",
|
|
@@ -83,7 +85,8 @@
|
|
| 83 |
"requiresPoses": true,
|
| 84 |
"minimumOS": "18.0",
|
| 85 |
"recommended": false,
|
| 86 |
-
"notes": "Input 504 with the global attention sliced."
|
|
|
|
| 87 |
},
|
| 88 |
{
|
| 89 |
"id": "DA3-Small-3views-504",
|
|
@@ -92,8 +95,8 @@
|
|
| 92 |
"files": [
|
| 93 |
{
|
| 94 |
"path": "Data/com.apple.CoreML/model.mlmodel",
|
| 95 |
-
"bytes":
|
| 96 |
-
"sha256": "
|
| 97 |
},
|
| 98 |
{
|
| 99 |
"path": "Data/com.apple.CoreML/weights/weight.bin",
|
|
@@ -111,7 +114,8 @@
|
|
| 111 |
"requiresPoses": true,
|
| 112 |
"minimumOS": "17.0",
|
| 113 |
"recommended": false,
|
| 114 |
-
"notes": "Input 504, converted without changes to the attention or the head."
|
|
|
|
| 115 |
}
|
| 116 |
]
|
| 117 |
}
|
|
|
|
| 8 |
"files": [
|
| 9 |
{
|
| 10 |
"path": "Data/com.apple.CoreML/model.mlmodel",
|
| 11 |
+
"bytes": 460941,
|
| 12 |
+
"sha256": "32bff26fc9f321216051cba32cfbda09cfa0bd66c686d3b005ff58395f64198d"
|
| 13 |
},
|
| 14 |
{
|
| 15 |
"path": "Data/com.apple.CoreML/weights/weight.bin",
|
|
|
|
| 27 |
"requiresPoses": true,
|
| 28 |
"minimumOS": "18.0",
|
| 29 |
"recommended": true,
|
| 30 |
+
"notes": "All speed-ups combined: input 392, global attention sliced into 8, rewritten head. The smallest and fastest of the 3-view models; runs on iPhone 12 Pro and 17 Pro.",
|
| 31 |
+
"version": "1"
|
| 32 |
},
|
| 33 |
{
|
| 34 |
"id": "DA3-Small-2views-392-fast",
|
|
|
|
| 37 |
"files": [
|
| 38 |
{
|
| 39 |
"path": "Data/com.apple.CoreML/model.mlmodel",
|
| 40 |
+
"bytes": 538896,
|
| 41 |
+
"sha256": "c4130e4db3c7d214977af64459954e48eafeb26001bb9ed3e15fe936834998c0"
|
| 42 |
},
|
| 43 |
{
|
| 44 |
"path": "Data/com.apple.CoreML/weights/weight.bin",
|
|
|
|
| 56 |
"requiresPoses": true,
|
| 57 |
"minimumOS": "18.0",
|
| 58 |
"recommended": false,
|
| 59 |
+
"notes": "The same speed-ups with 2 views.",
|
| 60 |
+
"version": "1"
|
| 61 |
},
|
| 62 |
{
|
| 63 |
"id": "DA3-Small-3views-504-sliced",
|
|
|
|
| 66 |
"files": [
|
| 67 |
{
|
| 68 |
"path": "Data/com.apple.CoreML/model.mlmodel",
|
| 69 |
+
"bytes": 535890,
|
| 70 |
+
"sha256": "c4e35e47a2b24dc5161b698927234c2db7d7823bf81a0a990057bdbb0a07c425"
|
| 71 |
},
|
| 72 |
{
|
| 73 |
"path": "Data/com.apple.CoreML/weights/weight.bin",
|
|
|
|
| 85 |
"requiresPoses": true,
|
| 86 |
"minimumOS": "18.0",
|
| 87 |
"recommended": false,
|
| 88 |
+
"notes": "Input 504 with the global attention sliced.",
|
| 89 |
+
"version": "1"
|
| 90 |
},
|
| 91 |
{
|
| 92 |
"id": "DA3-Small-3views-504",
|
|
|
|
| 95 |
"files": [
|
| 96 |
{
|
| 97 |
"path": "Data/com.apple.CoreML/model.mlmodel",
|
| 98 |
+
"bytes": 398104,
|
| 99 |
+
"sha256": "eafef0b7f41b94b4dab4f105dd096525e662f3804696278733e8d6b2ec3edc87"
|
| 100 |
},
|
| 101 |
{
|
| 102 |
"path": "Data/com.apple.CoreML/weights/weight.bin",
|
|
|
|
| 114 |
"requiresPoses": true,
|
| 115 |
"minimumOS": "17.0",
|
| 116 |
"recommended": false,
|
| 117 |
+
"notes": "Input 504, converted without changes to the attention or the head.",
|
| 118 |
+
"version": "1"
|
| 119 |
}
|
| 120 |
]
|
| 121 |
}
|