/ Модель

Характеристики

Лицензия
CC BY-NC 4.0
Библиотека
pytorch
Опубликована
18 ноя 2026

L-DPT

Оценка глубиныИзображение → depth_map3 профессии

L-DPT оценивает относительную глубину на фотографиях высокого разрешения с помощью энкодера DINOv3 и латентного DPT-декодера.

0скачиваний за 30 дней0лайковвеса обновлены28 ноя 2026

Бенчмарки

Как модель справилась с задачами пользователей ailist и что о ней публикуют открытые лидерборды

Публичные оценки

Из открытых лидербордов. Сравнивайте результаты одного теста при одинаковых условиях — отсутствие оценки не значит, что модель хуже.

В подключённых источниках результатов для этой модели пока нет.

Что умеет модель

Описание составлено по карточке модели и метаданным Hugging Face

L-DPT — модель компьютерного зрения, представленная авторами исследовательской работы ECCV 2026. Она оценивает относительную глубину по фотографии в её исходном разрешении, вплоть до 100 мегапикселей. Архитектура сочетает замороженный энкодер DINOv3 ViT-7B/16 и латентный DPT-декодер на 271 млн параметров; декодер обучали на фрагментах 768 × 768 без данных высокого разрешения. В репозитории также есть отдельный декодер для семантической сегментации COCO-Stuff, но основная задача модели по метаданным — оценка глубины.

Для фотографий авторы рекомендуют вариант zero-shot, обученный на синтетических и многовидовых наборах; вариант mixed дополнительно обучен на обучающих разделах NYUv2, KITTI и DIODE и показал меньшую ошибку на приведённых в карточке бенчмарках. Выход — положительная относительная глубина, где большие значения соответствуют более удалённым точкам; для получения метрической глубины требуется подогнать масштаб и сдвиг отдельно для каждого изображения. Модель принимает изображения и выдаёт карту глубины. Для запуска нужны код L-DPT, веса декодера и отдельно полученные веса энкодера DINOv3 ViT-7B/16. Указана лицензия CC BY-NC 4.0; веса энкодера распространяются по лицензии DINOv3.

Сценарии применения

  • построение карты относительной глубины фотографии
  • оценка глубины на изображениях высокого разрешения
  • анализ глубины сцен интерьера
  • оценка глубины дорожных и уличных сцен

Ограничения

Модель предсказывает относительную глубину, а не готовые метрические расстояния: для метрического результата требуется подгонка масштаба и сдвига на каждом изображении. Для запуска необходимы отдельные веса энкодера DINOv3 ViT-7B/16 и GPU с существенным объёмом памяти; вариант mixed обучался на обучающих разделах NYUv2, KITTI и DIODE.

Для каких профессий подходит3

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

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

FileModelTraining dataSizesha256
l-dpt_large_depth_zeroshot.pthL-DPT Large (zero-shot)8 synthetic and multi-view sets; no image of the benchmarks below1.08 GBb4e7e95301fda7557760f787e7992f4ccca3c03cb70e46eadeb48e227b1b31ca
l-dpt_large_depth_mixed.pthL-DPT Large (mixed)the same + the NYUv2, KITTI and DIODE training splits1.08 GB4852b823c68fea30b3360a249e71daf72a9c6c2c74f747602a117b42f35d36fa
l-dpt_large_semseg_cocostuff.pthL-DPT Large (COCO-Stuff)COCO-Stuff 164k train (171 classes)3.09 GB034397a1ef38e0aa190ebea1ff1c133d4f7bb7250d781d9019a240a65f2b1bb7

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 resolutionPeak GPU memoryRTX PRO 6000 Blackwell
2 MP15 GiB0.64 s
8 MP19 GiB7.6 s
32 MP21 GiB39 s
60 MP24 GiB106 s
100 MP33 GiB205 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.

ModelNYUv2KITTIETH3DDIODE
L-DPT Large (zero-shot)3.42 / 98.286.43 / 96.973.64 / 99.1721.47 / 85.74
L-DPT Large (mixed)2.87 / 99.095.96 / 97.613.47 / 99.1014.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.

ModelCOCO-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}
}

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм · pytorch · depth-estimation

Можно запустить

Подбираем GPU…

Ревизия весов
822f3aa

0 моделей