LiteRT models for the Android app (DA2 Small at 3 sizes, ZipDepth, YOLO26n depth, YOLO11n)
Browse files- LICENSE.md +6 -3
- README.md +17 -0
- tflite/depth_anything_v2_small.tflite +3 -0
- tflite/depth_anything_v2_small_196x252.tflite +3 -0
- tflite/depth_anything_v2_small_518x686.tflite +3 -0
- tflite/yolo11n.tflite +3 -0
- tflite/yolo26n_depth.tflite +3 -0
- tflite/zipdepth_base.tflite +3 -0
LICENSE.md
CHANGED
|
@@ -1,10 +1,13 @@
|
|
| 1 |
# Licences
|
| 2 |
|
| 3 |
-
The files in this repository are redistributed unchanged
|
| 4 |
their original authors:
|
| 5 |
|
| 6 |
-
- `coreml/ZipDepthBaseF16.mlpackage`: ZipDepth, (c) the ZipDepth authors (Fabio Tosi, Luca Bartolomei, Matteo Poggi,
|
| 7 |
Stefano Mattoccia), MIT License. Source: https://github.com/fabiotosi92/ZipDepth
|
| 8 |
-
- `coreml/yolo26n-depth.mlpackage`
|
|
|
|
| 9 |
General Public License v3.0 (https://www.gnu.org/licenses/agpl-3.0.html). Source: https://github.com/ultralytics/ultralytics
|
| 10 |
Enterprise licensing: https://www.ultralytics.com/license
|
|
|
|
|
|
|
|
|
| 1 |
# Licences
|
| 2 |
|
| 3 |
+
The files in this repository are redistributed unchanged apart from the format conversion (Core ML, LiteRT) under the licences of
|
| 4 |
their original authors:
|
| 5 |
|
| 6 |
+
- `coreml/ZipDepthBaseF16.mlpackage` and `tflite/zipdepth_base.tflite`: ZipDepth, (c) the ZipDepth authors (Fabio Tosi, Luca Bartolomei, Matteo Poggi,
|
| 7 |
Stefano Mattoccia), MIT License. Source: https://github.com/fabiotosi92/ZipDepth
|
| 8 |
+
- `coreml/yolo26n-depth.mlpackage`, `coreml/yolo11n.mlpackage`, `tflite/yolo26n_depth.tflite` and
|
| 9 |
+
`tflite/yolo11n.tflite`: Ultralytics YOLO, (c) Ultralytics, GNU Affero
|
| 10 |
General Public License v3.0 (https://www.gnu.org/licenses/agpl-3.0.html). Source: https://github.com/ultralytics/ultralytics
|
| 11 |
Enterprise licensing: https://www.ultralytics.com/license
|
| 12 |
+
- `tflite/depth_anything_v2_small*.tflite`: Depth Anything V2 Small, (c) the Depth Anything authors, Apache License 2.0.
|
| 13 |
+
Source: https://huggingface.co/depth-anything/Depth-Anything-V2-Small-hf
|
README.md
CHANGED
|
@@ -24,5 +24,22 @@ built from a fresh clone with `tools/get_models.sh`. Depth Anything V2 is not mi
|
|
| 24 |
| `coreml/yolo26n-depth.mlpackage` | Ultralytics YOLO26n depth, FP16, 640x640, exported with `yolo export format=coreml half=True` | metric depth (m) | AGPL-3.0 (Ultralytics) |
|
| 25 |
| `coreml/yolo11n.mlpackage` | Ultralytics YOLO11n detector (COCO), FP16, 640x640, NMS in the package | boxes, classes | AGPL-3.0 (Ultralytics) |
|
| 26 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 27 |
Each model keeps the licence of its authors; see LICENSE.md. The Ultralytics models are AGPL-3.0: if you build on
|
| 28 |
them in a product, check [Ultralytics licensing](https://www.ultralytics.com/license).
|
|
|
|
| 24 |
| `coreml/yolo26n-depth.mlpackage` | Ultralytics YOLO26n depth, FP16, 640x640, exported with `yolo export format=coreml half=True` | metric depth (m) | AGPL-3.0 (Ultralytics) |
|
| 25 |
| `coreml/yolo11n.mlpackage` | Ultralytics YOLO11n detector (COCO), FP16, 640x640, NMS in the package | boxes, classes | AGPL-3.0 (Ultralytics) |
|
| 26 |
|
| 27 |
+
## Android (LiteRT / TFLite)
|
| 28 |
+
|
| 29 |
+
Float32 LiteRT files for the Android port (`android/` in the app repo), portrait inputs, made with
|
| 30 |
+
`android/tools/export_tflite.py` (litert-torch 0.10) and checked against the PyTorch originals on a real frame with
|
| 31 |
+
`android/tools/verify_tflite.py`.
|
| 32 |
+
|
| 33 |
+
| File | Model | Input | Output | vs PyTorch (median rel. diff.) | Licence |
|
| 34 |
+
|---|---|---|---|---|---|
|
| 35 |
+
| `tflite/depth_anything_v2_small.tflite` | Depth Anything V2 Small (from `depth-anything/Depth-Anything-V2-Small-hf`) | 280x364, ImageNet-normalised, NCHW | relative disparity | 1.6e-3 (tanh GELU) | Apache-2.0 |
|
| 36 |
+
| `tflite/depth_anything_v2_small_196x252.tflite` | same, smaller input | 196x252 | relative disparity | 1.4e-3 | Apache-2.0 |
|
| 37 |
+
| `tflite/depth_anything_v2_small_518x686.tflite` | same, full detail | 518x686 | relative disparity | 1.7e-3 | Apache-2.0 |
|
| 38 |
+
| `tflite/zipdepth_base.tflite` | ZipDepth base, NPU checkpoint, exact global-context block | 384x512, RGB [0, 1] | relative disparity | 1.0e-6 | MIT |
|
| 39 |
+
| `tflite/yolo26n_depth.tflite` | YOLO26n depth (Ultralytics `format=litert`) | 640x640, RGB [0, 1] | metric depth (m) | 5.4e-7 | AGPL-3.0 |
|
| 40 |
+
| `tflite/yolo11n.tflite` | YOLO11n detector (Ultralytics `format=litert`) | 640x640, RGB [0, 1] | [1, 84, 8400], boxes normalised | exact (classes) | AGPL-3.0 |
|
| 41 |
+
|
| 42 |
+
DA2: the exact GELU does not convert with litert-torch 0.10, so the tanh approximation is used.
|
| 43 |
+
|
| 44 |
Each model keeps the licence of its authors; see LICENSE.md. The Ultralytics models are AGPL-3.0: if you build on
|
| 45 |
them in a product, check [Ultralytics licensing](https://www.ultralytics.com/license).
|
tflite/depth_anything_v2_small.tflite
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d2410f0bcc7c5b04b85ad7af5714c452e7788394341d39a99a70b62e436bde21
|
| 3 |
+
size 99511348
|
tflite/depth_anything_v2_small_196x252.tflite
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0999ff52e479546787c33bdb5a1f31b7406f6d2f0924f5a7dbbf37bc85e3895d
|
| 3 |
+
size 99510632
|
tflite/depth_anything_v2_small_518x686.tflite
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7be3805e5834797d07d454e6798a7625491c9313c60ac2e64fa41a64043487bc
|
| 3 |
+
size 99483640
|
tflite/yolo11n.tflite
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ac39032363f8ce75679e7da7b2e5526b71ac73480c07e356f1484eae1d7cddc7
|
| 3 |
+
size 10763700
|
tflite/yolo26n_depth.tflite
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2ed6491b0c2d10579741b88a4bac76948f7fb56837fc05133393fe9ef5fe09d1
|
| 3 |
+
size 20830946
|
tflite/zipdepth_base.tflite
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3de3986334cedb47b618ba06f8927c695194261f7b78361064a03f015b47a678
|
| 3 |
+
size 24671368
|