L-DPT: Scaling Dense Prediction with Latent Decoding
Train at 768. Run at 100 megapixels. European Conference on Computer Vision (ECCV) 2026
[ Project ] [ Code ] [ Demo ] [ Training data ]
L-DPT predicts relative depth at the native resolution of a photo, up to 100 megapixels. It pairs a frozen DINOv3 ViT-7B/16 encoder with a 271M-parameter latent DPT decoder that was trained on 768 x 768 crops only, with no high-resolution training data. This page holds the weights files of its two depth models and of its COCO-Stuff segmentation model, for use with the L-DPT code.
Files
| File | Model | Training data | Size | sha256 |
|---|---|---|---|---|
l-dpt_large_depth_zeroshot.pth | L-DPT Large (zero-shot) | 8 synthetic and multi-view sets; no image of the benchmarks below | 1.08 GB | b4e7e95301fda7557760f787e7992f4ccca3c03cb70e46eadeb48e227b1b31ca |
l-dpt_large_depth_mixed.pth | L-DPT Large (mixed) | the same + the NYUv2, KITTI and DIODE training splits | 1.08 GB | 4852b823c68fea30b3360a249e71daf72a9c6c2c74f747602a117b42f35d36fa |
l-dpt_large_semseg_cocostuff.pth | L-DPT Large (COCO-Stuff) | COCO-Stuff 164k train (171 classes) | 3.09 GB | 034397a1ef38e0aa190ebea1ff1c133d4f7bb7250d781d9019a240a65f2b1bb7 |
Use zero-shot for photos: it is the model of the demo and of every figure in the code repository's README. Use mixed for the lowest benchmark error: it also trains on the NYUv2, KITTI and DIODE training splits.
Each file holds the decoder only (fp32 weights) and its model configuration; the name is
l-dpt_<decoder size>_<task>_<training data>.pth. The DINOv3 encoder is not
included: it is Meta's, under the DINOv3 License. Request the ViT-7B/16 weights from
Meta (release page or the gated
Hugging Face repo,
27 GB), then point LDPT_DINOV3 at the file or folder.
Usage
With the L-DPT code, on an NVIDIA GPU (the weights take 13.5 GiB of its memory; Time and memory gives the peak per photo):
git clone https://github.com/Pointcept/L-DPT.git && cd L-DPT
pip install -e ".[demo]" # Linux, Python 3.10+; installs PyTorch 2.8+ from PyPI if needed
export LDPT_DINOV3=/path/to/dinov3_vit7b16_pretrain_lvd1689m-a955f4ea.pth # or the Hugging Face folder
import cv2
from ldpt.models.l_dpt import api
model = api.load("l-dpt_large_depth_zeroshot") # downloads the 1.08 GB weights file once
image = cv2.cvtColor(cv2.imread("photo.jpg"), cv2.COLOR_BGR2RGB)
depth = api.predict(model, image) # HxW float32, larger = farther; runs at short side 768
depth = api.predict(model, image, size=None) # at the photo's native resolution
Above 3072 px the frozen encoder runs in overlapping 3072 px windows and the decoder
decodes the whole latent grid in one pass (encoder_tiles=None: one encoder pass).
python scripts/demo_depth.py photo.jpg writes the depth in colour (near blue, far red)
and as a float32 .npy.
A file downloaded from this page loads by its path,
api.load("l-dpt_large_depth_zeroshot.pth"), or through LDPT_CKPT_LARGE_DEPTH_ZEROSHOT
/ LDPT_CKPT_LARGE_DEPTH_MIXED / LDPT_CKPT_LARGE_SEMSEG_COCOSTUFF.
The online demo also runs on your own
GPU: pip install -e ".[demo,app]", then python demo/hf_space/app.py (with
LDPT_DINOV3 set). Every option of the API and the scripts: docs/inference.md of the
code.
Time and memory
| Photo, native resolution | Peak GPU memory | RTX PRO 6000 Blackwell |
|---|---|---|
| 2 MP | 15 GiB | 0.64 s |
| 8 MP | 19 GiB | 7.6 s |
| 32 MP | 21 GiB | 39 s |
| 60 MP | 24 GiB | 106 s |
| 100 MP | 33 GiB | 205 s |
Zero-shot model, one model loaded and warm, no mirrored pass (flip=True runs the
network twice), PyTorch 2.8. From 8 MP up the photos have a side above 3072 px, so the
encoder runs in windows. The RTX PRO 6000 runs the attention order the code picks for
it (docs/inference.md of the code). The 100 MP row is a 102 MP photo. Peak GPU memory
is PyTorch's peak allocation; the scripts and the demo of the code set
PYTORCH_CUDA_ALLOC_CONF=expandable_segments:True, with which PyTorch reserves 34 GiB
at 100 MP on an RTX PRO 6000 (44 GiB without).
Architecture
- Encoder: DINOv3 ViT-7B/16, frozen, tapped after blocks 10, 20, 30 and 40 of 40.
- Decoder: a latent DPT on the encoder's patch grid: 1024 channels, 16 heads, 4 stages of 4 transformer blocks with 2D RoPE (271M parameters, run in bf16); a 3x3 convolution and a pixel shuffle read out to pixels. The attention of the last stage runs in fp32, and every decoder attention logit is bounded by 1000.
- Output: an exponential depth head: positive relative depth, larger = farther, defined up to a scale and a shift per image (fit both to get metric depth).
- Segmentation model: the same encoder with a 772M-parameter latent decoder (2048 channels, 16 heads, 4 stages of 2 blocks, attention at 1024 channels with QK-norm, a BatchNorm on each tapped encoder layer), 64-channel pixel features and a 1x1 classifier over the 171 COCO-Stuff classes.
Training data
- L-DPT Large (zero-shot), 506,790 samples: Hypersim, Virtual KITTI 2, Structured3D, TartanAir, BlendedMVS, BlendedMVS+, BlendedMVS++ and IRS.
- L-DPT Large (mixed), 579,637 samples: the same plus the NYUv2, KITTI and DIODE (indoor and outdoor) training splits. Its weights are the uniform average of two checkpoints of its training.
- L-DPT Large (COCO-Stuff), 118,287 images: the COCO-Stuff 164k training split (171 classes). Its weights are the uniform average of four checkpoints of its training.
The processed depth sets and their split files are in
DepthHybrid; the training
configs and how to run them are in docs/training.md of the code.
Results
AbsRel (%, lower is better) / δ1 (%, higher is better), with Marigold's masks: NYUv2 with the standard Eigen crop, KITTI with the Eigen crop of the benchmark frame, ETH3D and all 771 DIODE validation images uncropped; a RANSAC scale and shift fitted in depth per image (seed 0). One set of weights per model for all four sets; the short side resized to 768; the prediction averaged with that of the mirrored image.
| Model | NYUv2 | KITTI | ETH3D | DIODE |
|---|---|---|---|---|
| L-DPT Large (zero-shot) | 3.42 / 98.28 | 6.43 / 96.97 | 3.64 / 99.17 | 21.47 / 85.74 |
| L-DPT Large (mixed) | 2.87 / 99.09 | 5.96 / 97.61 | 3.47 / 99.10 | 14.43 / 87.64 |
The zero-shot model sees no image of these sets in training (its synthetic data include
Virtual KITTI 2); the mixed model trains on the NYUv2, KITTI and DIODE training splits.
There is no separate validation split: every training epoch was scored on these four
sets, and the released weights (zero-shot: epoch 7; mixed: the average of epoch 4 and
the end of its anneal) were chosen with those scores. Protocol, masks and the command
that reproduces this table: docs/evaluation.md of the code.
Semantic segmentation: mIoU (%, higher is better) over the 171 classes of COCO-Stuff 164k val (5,000 images), the short side resized to 768, the whole image; single scale / averaged with the mirrored image.
| Model | COCO-Stuff |
|---|---|
| L-DPT Large (COCO-Stuff) | 53.87 / 53.99 |
The weights (stage-1 epoch 9 and the average with its anneals) were chosen with the
scores on this val set too. The command that reproduces it: docs/training.md of the
code (Segmentation).
License
The L-DPT code and model weights are released under CC BY-NC 4.0 (attribution, non-commercial use). The DINOv3 encoder they need is Meta's, under the DINOv3 License, and is not included here. The training sets keep the terms of their sources (DepthHybrid lists them).
Citation
@inproceedings{wu2026latent,
title = {Scaling Dense Prediction with Latent Decoding},
author = {Wu, Xiaoyang and Lao, Yixing and Wang, Chengyao and Yang, Senqiao and Zhang, Yujia and Zhao, Hengshuang},
booktitle = {European Conference on Computer Vision (ECCV)},
year = {2026}
}