Skip to page content
SAVRN
Search Plan a project

Open-weight model · Depth estimation

Depth-Anything-3-Small-LiteRT

by LiteRT Community (FKA TFLite) litert-community/Depth-Anything-3-Small-LiteRT

Depth-Anything-3-Small-LiteRT is an open-weight model for depth estimation from LiteRT Community (FKA TFLite), released under Apache License 2.0. Its published files total 58.0 MB.

On-device LiteRT / TFLite conversion of Depth Anything 3 — Small (ByteDance-Seed, Apache-2.0) for monocular depth, running fully on the mobile GPU via the LiteRT CompiledModel API (ML Drift delegate). No CPU fallback ops — the whole graph is GPU-compatible.

Parameters—
Context—
Weights55.0 MB
Licenseapache-2.0
AccessOpen weights
Monthly Downloads—

Model Card

By LiteRT Community (FKA TFLite), published under apache-2.0, revision 1ebd31737fcb.

On-device LiteRT / TFLite conversion of Depth Anything 3 — Small (ByteDance-Seed, Apache-2.0) for monocular depth, running fully on the mobile GPU via the LiteRT CompiledModel API (ML Drift delegate). No CPU fallback ops — the whole graph is GPU-compatible. DA3 processes images at their native aspect ratio (upperboundresize, longer side → 896, multiple of 14). Forcing a square 896×896 and letterbox-padding drops the match to corr 0.977 (the black padding leaks into the content through global attention). Converting at the native rectangle restores corr 0.9994 and is also faster (fewer tokens). This checkpoint is built for portrait ~9:16. For another aspect, re-convert at that shape (or your…

Read LiteRT Community (FKA TFLite)'s full model card

Depth Anything 3 (Small) — LiteRT GPU, monocular depth

On-device LiteRT / TFLite conversion of Depth Anything 3 — Small (ByteDance-Seed, Apache-2.0) for monocular depth, running fully on the mobile GPU via the LiteRT CompiledModel API (ML Drift delegate). No CPU fallback ops — the whole graph is GPU-compatible.

Task Monocular depth (single RGB → depth)
Backbone DINOv2 ViT-S + RoPE, DPT/DualDPT depth head
Input [1, 3, 896, 504] NCHW float32, ImageNet-normalized, native portrait aspect
Output [1, 1, 896, 504] depth
Precision / size FP16, 55 MB
Device Pixel 8a, LiteRT GPU (Accelerator.GPU), ~1.8 s / image
Fidelity Pearson corr 0.99948 vs the official PyTorch DA3-Small pipeline

Why a fixed 896×504 (native aspect, not square)

DA3 processes images at their native aspect ratio (upper_bound_resize, longer side → 896, multiple of 14). Forcing a square 896×896 and letterbox-padding drops the match to corr 0.977 (the black padding leaks into the content through global attention). Converting at the native rectangle restores corr 0.9994 and is also faster (fewer tokens). This checkpoint is built for portrait ~9:16. For another aspect, re-convert at that shape (or your camera's fixed aspect) with the script below.

Preprocessing (must match)

resize to 504×896 (W×H)  →  x/255  →  (x - mean) / std
mean = [0.485, 0.456, 0.406], std = [0.229, 0.224, 0.225]   # ImageNet, RGB, NCHW

GPU-clean conversion (what was patched)

Converted with litert-torch. DA3 is not GPU-clean out of the box; the following exact, GPU-clean rewrites were applied (all numerically faithful unless noted):

  1. checkpoint model. key-prefix strip (load fix)
  2. RoPE max_position = int(positions.max())+1 → constant (torch.export data-dependent)
  3. fused-QKV attention → 3 separate Linears + 4D attention (avoids 5D RESHAPE; exact, 1e-6)
  4. LayerScale gamma folded into attn.proj / mlp.fc2 (the LayerScale MUL otherwise mis-lays-out the token dim on the GPU delegate: fully_connected {1,1,N,C} vs {N,1,1,C})
  5. pos_embed bicubic interpolation baked to a constant (the interpolate of a constant emits GATHER_ND on desktop and RESIZE_BILINEAR with 0 runtime inputs on device)
  6. ConvTranspose2d(k=s,stride=s) → zero-stuff (nearest-upsample × top-left mask) + Conv2d (flipped weight) — exact equivalent (~1e-7), because the Pixel-8a GPU rejects TRANSPOSE_CONV and the conv+ depth-to-space alternative needs >4D
  7. DPT-head custom_interpolate align_corners=True → False (GPU bans align_corners=True resize) — the only non-exact rewrite; source of the residual ~0.05 % vs the official model
  8. head UV pos-embed-again disabled (its make_sincos broadcast emits BROADCAST_TO; ratio-0.1 refinement)
  9. camera-token insertion x[:, :, 0] = cam_token → torch.cat (in-place index-assign → SELECT_V2)

Net result: GATHER_ND = 0, no >4D tensors, no TRANSPOSE_CONV / BROADCAST_TO / banned ops.

Fidelity note (honest)

corr 0.99948 vs the official FP32 PyTorch pipeline. FP16 is not a factor (FP32≡FP16, corr 1.0). The residual ~0.05 % is the align_corners=True→False change in (7), which the mobile GPU forces — an irreducible hardware constraint, not a conversion error. Structure and edge sharpness are visually identical.

Usage (Android / LiteRT CompiledModel)

val model = CompiledModel.create(context.assets, "da3_small_gpu_fp16.tflite",
    CompiledModel.Options(Accelerator.GPU), null)
// input: [1,3,896,504] NCHW, ImageNet-normalized; output: [1,1,896,504] depth

License

Apache-2.0, inherited from the upstream Depth Anything 3.

Identity and Version

Repository
litert-community/Depth-Anything-3-Small-LiteRT
Publisher
LiteRT Community (FKA TFLite)
Task
Depth estimation
Modality
Other
Library
litert
Parameters
Not stated by the source
Languages
on-device, gpu
Revision
1ebd31737fcb7842d61ad22722b59cd8053829f2
First published
2026-09-22
Last updated
2026-09-22

Files and Weights

6 files, 58.0 MB in total. The weights are 1 file totalling 55.0 MB in tflite.

Weights1 file · 55.0 MB
Documentation1 file · 4.2 KB
Other3 files · 2.9 MB
Repository1 file · 1.7 KB
Every file
FileTypeSizeSHA-256
da3_small_gpu_fp16.tfliteWeights55.0 MB e170369a72ba
README.mdDocumentation4.2 KB —
samples/alley.pngOther934.8 KB 0a17678357c2
samples/avenue.pngOther1.2 MB 4b295b6a20b2
samples/sydney_official_vs_litert.pngOther803.3 KB 7b2719a6cf56
.gitattributesRepository1.7 KB —

License and Download

License
apache-2.0
Access
Open weights, no gate
Download size
55.0 MB
Download from LiteRT Community (FKA TFLite)

Released by LiteRT Community (FKA TFLite) through its official repository on Hugging Face. Read the license.

Built From

  • Derived from depth-anything/DA3-SMALL
  • Quantized from depth-anything/DA3-SMALL

Memory Requirements

PrecisionWeights in memory
As published55.0 MB

Weights only, from the published parameter count; the key-value cache and runtime add to this.

Questions About Depth-Anything-3-Small-LiteRT

Can I use Depth-Anything-3-Small-LiteRT commercially?

Yes. Depth-Anything-3-Small-LiteRT is released under Apache License 2.0. The Apache License 2.0 is a permissive open-source license. It permits commercial use, modification and redistribution. It requires keeping the license and copyright notices and any NOTICE file, stating significant changes, and it includes an express patent grant from contributors.

Similar Models

Model · Depth estimation

dpt-hybrid-midas

Intel

Dense Prediction Transformer (DPT) model trained on 1.4 million images for monocular depth estimation. It was introduced in the paper Vision Transformers for Dense Prediction by Ranftl et al. (2021) and first released in this repository. DPT uses the Vision Transformer (ViT) as backbone and adds a neck + head on top for monocular depth estimation. This repository hosts the "hybrid" version of the model as stated in the paper. DPT-Hybrid diverges from DPT by using ViT-hybrid as a backbone and taking some activations from the backbone. The model card has been written in combination by the Hugging Face team and Intel. Here is how to use this model for zero-shot depth estimation on an image…

Open weights apache-2.0 transformers

Model · Depth estimation

RK182X-DEPTH-DA3-BASE

RKNNAI

本仓库提供由 depth-anything/DA3-BASE 转换的 RKNN 模型。 - Model ID:RKNNAI/RK182X-DEPTH-DA3-BASE - 模型显示名称:RK182X-DEPTH-DA3-BASE - 源模型:depth-anything/DA3-BASE - 模型类型:DEPTH ModelScope 完整下载: Hugging Face 完整下载: ModelScope 指定配置下载: Hugging Face 指定配置下载: - 使用配套 RKNN Runtime 和驱动;运行前用 rknn-smi -v 检查设备端版本。 - 源模型许可证:Apache License 2.0,正文见 LICENSE,归属与转换修改说明见 NOTICE。 - 同时遵守 RKNN Toolkit、RKNN Runtime 相关许可;本包不包含运行库。

Open weights apache-2.0

Model · Depth estimation

GRADE

Physical Intelligence Rice

This repository contains the complete GRADE model, paper ablations, and baselines: 19 model checkpoint files plus one auxiliary TAESD weight file (20.safetensors files in total). It also includes the inference and metric code and the saved camera-ready quantitative results. The full GRADE model uses the radar, diffusion, and ControlNet checkpoints in checkpoints/grade/. - E1 — saved-result reproduction: regenerate the quantitative tables and figures from the supplied camera-ready CSVs and auxiliary evaluation data. This requires no inference or dataset download. - E2 — local reproduction: run inference on the released evaluation data, compute 2D/3D metrics, then regenerate the quantitative…

Open weights cc-by-nc-4.0 pytorch

Model · Depth estimation

iris-3b

Henry Lee

ComfyUI-ready files for Iris-3B by Speridlabs, a 3B text-to-image transformer that works directly in pixel space (no VAE). Use them with ComfyUI-Iris. It adds native Iris support without any custom nodes and has an example workflow for each file below. qwen3vl4bbf16.safetensors from Comfy-Org/Qwen3-VL. Load it with Load CLIP, type krea2. Text to image. Load Diffusion Model, Load CLIP (krea2), Load VAE (pixelspace), Empty Latent Image at about 1 megapixel, and an empty negative prompt. resmultistep or euler, simple, 50 steps, CFG 3. Upscale x4. Base model plus the upscaler LoRA. Scale the image up 4x with bicubic, VAE Encode, multiply the latent by 2 (LatentMultiply), then one…

Open weights apache-2.0

Model · Depth estimation

SemiSupMDE

Amir El-Ghoussani

Models for the paper Consistency Regularisation for Unsupervised Domain Adaptation in Monocular Depth Estimation (CoLLAs 2024) by Amir El-Ghoussani, Julia Hornauer, Gustavo Carneiro and Vasileios Belagiannis. Code: github.com/AmirMaEl/SemiSupMDE. A single U-Net (54.6M parameters) predicts depth from one RGB image. It is trained on synthetic Virtual KITTI with ground truth and adapted to real KITTI without any KITTI labels, using a pairwise loss on source images and a perturbation-consistency loss across RandAugment views of the unlabelled target images. Both checkpoints are PyTorch state dicts. KITTI Eigen test split (697 images), Garg crop, velodyne ground truth, no median scaling: With…

Open weights pytorch

Model · Depth estimation

Depth-Anything-V2-Small-hf

Depth Aything

Depth Anything V2 is trained from 595K synthetic labeled images and 62M+ real unlabeled images, providing the most capable monocular depth estimation (MDE) model with the following features: - more fine-grained details than Depth Anything V1 - more robust than Depth Anything V1 and SD-based models (e.g., Marigold, Geowizard) - more efficient (10x faster) and more lightweight than SD-based models - impressive fine-tuned performance with our pre-trained models This model checkpoint is compatible with the transformers library. Depth Anything V2 was introduced in the paper of the same name by Lihe Yang et al. It uses the same architecture as the original Depth Anything release, but uses…

Open weights apache-2.0 25M parameters transformers