DA3-Base for the browser: backbone and depth head, half precision
Browse files- README.md +34 -0
- da3-base-backbone-fp16.onnx +3 -0
- da3-base-head-fp16.onnx +3 -0
README.md
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
tags:
|
| 4 |
+
- onnx
|
| 5 |
+
- depth-estimation
|
| 6 |
+
- pose-estimation
|
| 7 |
+
- multi-view-geometry
|
| 8 |
+
base_model: depth-anything/DA3-BASE
|
| 9 |
+
---
|
| 10 |
+
|
| 11 |
+
# Depth Anything 3 (Base) for the browser
|
| 12 |
+
|
| 13 |
+
[Depth Anything 3](https://github.com/ByteDance-Seed/Depth-Anything-3)'s
|
| 14 |
+
DA3-Base model (ByteDance, Apache 2.0), exported to ONNX for
|
| 15 |
+
onnxruntime-web, as used by
|
| 16 |
+
[Image Complex](https://github.com/lachiewelsh/image-complex) (its
|
| 17 |
+
Process → Predict scene). Not an official release; the weights are
|
| 18 |
+
ByteDance's, unchanged except for half precision.
|
| 19 |
+
|
| 20 |
+
Exported with `scripts/da3/export.py --split` in that repository
|
| 21 |
+
(`scripts/da3/README.md` says how, and what the export changes), checked
|
| 22 |
+
against DA3's PyTorch code.
|
| 23 |
+
|
| 24 |
+
| File | Input | Output |
|
| 25 |
+
| --- | --- | --- |
|
| 26 |
+
| `da3-base-backbone-fp16.onnx` (185 MB) | `images` float32 (1, N, 3, H, W): N ≥ 2 photos, ImageNet-normalised, H and W multiples of 14 | `pose_enc` (1, N, 9): camera centre (3), rotation as a quaternion x y z w (4), field of view across the height and the width (radians), camera-to-world, principal point at the centre; `feat0`…`feat3` (1, N, H/14 · W/14, 1536) |
|
| 27 |
+
| `da3-base-head-fp16.onnx` (24 MB) | one photo's `feat0`…`feat3`, each reshaped to (1, H/14, W/14, 1536) | `depth`, `depth_conf` (1, H, W) |
|
| 28 |
+
|
| 29 |
+
Attention runs as `com.microsoft.MultiHeadAttention` (onnxruntime's fused
|
| 30 |
+
kernel, flash attention on WebGPU), so memory grows with the number of
|
| 31 |
+
photos rather than its square. Inputs and outputs are float32; the
|
| 32 |
+
arithmetic inside is half precision.
|
| 33 |
+
|
| 34 |
+
Licence: Apache 2.0, as DA3-Base (`depth-anything/DA3-BASE`).
|
da3-base-backbone-fp16.onnx
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c5de119384208e35c08a2000b36752998fde1c9b09fd009a33553951942da4e9
|
| 3 |
+
size 184858951
|
da3-base-head-fp16.onnx
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c6f3a3299140a9a885f48edcd88f30ffde22e8a6e964034a5556b7f1c7506b75
|
| 3 |
+
size 23780438
|