A smaller copy of Depth Anything 3 Base for running on a phone's CPU with ONNX Runtime. It is the depth model behind the Generative Depth setting of Unprocess, a free film-like photo editor for mobile.
| File | da3_base_int8.onnx (one file, no external data) |
| Size | 123,243,519 bytes (123 MB; the fp32 export is 412 MB) |
| SHA-256 | 86dd3200ed2506fe4d394b6526691f5c4591d88f51d3f42520aaee0b85387aaf |
| License | Apache-2.0, the same as the original model |
The model is Depth Anything 3, by Haotong Lin, Sili Chen, Jun Hao Liew, Donny Y. Chen, Zhenyu Li, Guang Shi, Jiashi Feng and Bingyi Kang of the ByteDance Seed team: paper, code, weights. Only the Small and Base checkpoints (and Metric and Mono Large) are Apache-2.0. Large, Giant, and Nested are CC BY-NC 4.0. Everything here is from Base.
The ONNX export this file is made from is
onnx-community/depth-anything-v3-base
(Apache-2.0), at revision c56b234c94b459a116d5dc782edf4f2db5889276.
If you use this model, please cite the paper:
@article{depthanything3,
title={Depth Anything 3: Recovering the visual space from any views},
author={Haotong Lin and Sili Chen and Jun Hao Liew and Donny Y. Chen and Zhenyu Li and Guang Shi and Jiashi Feng and Bingyi Kang},
journal={arXiv preprint arXiv:2511.10647},
year={2025}
}
This is a modified version of the ONNX export above. Only how the weights are stored changed and the graph does the same math, in fp32:
MatMulNBits operator (block size 128,
symmetric).Cast back to fp32 at the start of
the graph.The file is made by make_depth_model.py, which is in this repository too, and comes out
byte for byte the same each run:
pip install onnx onnxruntime onnx_ir numpy pillow
python make_depth_model.py # downloads the fp32 export, writes da3_base_int8.onnx
python make_depth_model.py --check photo.jpg # also compares it with the fp32 export on a photo
MatMulNBits is an ONNX Runtime contrib operator, so the file needs ONNX Runtime (tested with 1.30) and will not
load in other ONNX runtimes.
pixel_values: float32, shape [1, 1, 3, H, W] (batch, views, RGB, height, width). H and W can be
any multiple of 14. Normalize with the ImageNet mean [0.485, 0.456, 0.406] and standard deviation [0.229, 0.224, 0.225].predicted_depth: float32, [1, 1, H, W].depth-anything/DA3-BASE