/ Модель

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

Лицензия
Своя лицензия
Архитектура
depth_pro_2 · dense
Базовая модель
DepthPro2-H
Опубликована
1 дек 2026

shallowend-dp2-h-mlx-w8g64

Оценка глубиныИзображение → depth_map
51скачиваний за 30 дней0лайковвеса обновлены3 дек 2026

Описание модели

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

Квантизированная версия Apple Depth Pro 2 H+ для оценки метрической глубины по изображениям на Apple Silicon с MLX.

shubhambaid/shallowend-dp2-h-mlx-w8g64 — неофициальная версия Apple Depth Pro 2 H+, подготовленная Shubham Baid для запуска через mlx-vlm на компьютерах Apple Silicon; Apple не поддерживает эту сборку. Модель оценивает метрическую глубину по изображению с одной камеры. Она основана на архитектуре Depth Pro 2 и не проходила дополнительное обучение: линейные слои трансформерных блоков энкодера квантизированы до 8 бит с размером группы 64, остальные веса используют float16 или float32.

Контрольные результаты на iBims-1 и KITTI Eigen близки к исходной версии Apple FP32. Заявленный размер весов — 0,99 ГиБ; в карточке не указана длина контекста.

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

  • построение карты глубины по одиночному изображению
  • оценка расстояния до объектов на фотографии
  • извлечение глубины из кадров видео при использовании совместимой версии mlx-vlm

Ограничения

Предназначена только для некоммерческих научных исследований. Проверяйте inverse_depth на NaN и бесконечности; для видео требуется исправление mlx-vlm PR #2864, а при невалидных результатах автор рекомендует веса Apple FP32.

Публичные бенчмарки

Результаты из открытых лидербордов в сравнении с лидерами каталога

Публичных оценок пока нет

В подключённых источниках результатов этой модели не нашлось. Отсутствие оценки не значит, что модель хуже: её могли просто не проверять.

Источники: Hugging Face Leaderboards, Hugging Face Eval Results, Open LLM v2, MTEB, timm, Open ASR, EvalPlus, LLM Stats

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

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

Открыть на Hugging Face

Depth Pro 2 H+, MLX, 8-bit encoder (groups of 64)

Changelog

2026-12-03: weights replaced.

  • What was wrong: the first weights returned NaN or inf for part of the image on some inputs. Every fifth frame of 12 Sintel scenes as single images: 31 of 115 frames, on 4 scenes, up to 40% of the pixels. In video, 5 of 12 scenes. The iBims-1 and KITTI test images were all finite, so the check before release did not catch it. The first card also said that single images were not affected, which was wrong.
  • When found: 2026-12-02 (IST), the day after the release, when the study's Sintel video runs finished.
  • Cause: two float16 overflows. The output of the last encoder block passes float16's maximum (65504) on some inputs, and MLX's Winograd convolution on the GPU overflows inside the decoder although its inputs and outputs are in range.
  • What changed: the last encoder block, the reassemble stage that reads it and the decoder are now float32. The rest stays float16 and the encoder keeps the same 8-bit recipe. Every frame of the same 12 scenes (571 frames): 0 with a non-finite pixel, as single images and in both video modes (video with the fix of mlx-vlm PR #2864, see below).
  • Old weights: still in this repository's history, at revision 332ed37. Do not use them.

2026-12-02: card corrected to describe the problem, before the fix was known.

2026-12-01: first release.

What this is

Unofficial; derived from Apple's Depth Pro 2; not endorsed by Apple. For non-commercial scientific research only.

Apple's Depth Pro 2 H+ for mlx-vlm on Apple Silicon, with every linear layer of the encoder's transformer blocks quantized to 8 bits (160 layers, affine, groups of 64). The rest is float16, except float32 where float16 overflows (see Modifications). Its output is within the deployment spread on both of the study's full test sets.

Check the output for non-finite values. "Finite" is tested, not proven: 300 test images and 571 Sintel frames. Use mx.isfinite(result["inverse_depth"]).all(), on the inverse depth: depth itself is infinite where the inverse depth is zero, such as sky. Where it fails, use Apple's float32 weights.

Use

import mlx.core as mx
from mlx_vlm import load
from mlx_vlm.models.depth_pro_2.generate import DepthPro2Predictor, read_image

model, processor = load("shubhambaid/shallowend-dp2-h-mlx-w8g64")
predictor = DepthPro2Predictor(model, processor)
result = predictor.infer(read_image("image.jpg"))
assert mx.isfinite(result["inverse_depth"]).all()
depth_m = result["depth"]

Do not call model.to_float16() or set_dtype on it: that would undo the float32 parts.

Video needs mlx-vlm PR #2864. Released mlx-vlm averages the frames' prefix tokens in float16 before each cross-frame block, and for H+ that sum overflows. This is in the library's code, so the weights cannot fix it. The fix (average in float32) is PR #2864; the video checks above were run with it.

Results

Fidelity to Apple's PyTorch model at FP32, full test sets:

Test setImagesMean difference from FP32Upper 95% boundDeployment spreadVerdict
iBims-1 (indoor)1000.088%0.098%0.161%within deployment spread
KITTI Eigen (outdoor)2000.117%0.123%0.270%within deployment spread

Accuracy against ground truth:

Test setModeldelta1AbsRel
iBims-1Apple's PyTorch model, FP320.94430.0853
iBims-1the same port, float16, unquantized0.94430.0853
iBims-1this model0.94430.0853
KITTIApple's PyTorch model, FP320.97740.0575
KITTIthe same port, float16, unquantized0.97750.0574
KITTIthis model0.97750.0574

Speed and size (one 640x480 frame, Mac mini M4 Pro, 24 GB, MLX on the GPU). Timed back to back in one session:

Median latencyp90WeightsPeak process memory
these weights528.7 ms528.9 ms0.99 GiB8.91 GiB
first release (replaced)518.4 ms518.6 ms0.94 GiB8.36 GiB

The unquantized float16 port took 490 ms with 1.67 GiB of weights in an earlier session. What 8 bits buys here is a smaller download, not speed.

Modifications from Apple's release

  • Converted from Apple's PyTorch checkpoint (apple/DepthPro2-H) and focal estimator (apple/DepthPro2-focal) to the mlx-vlm Depth Pro 2 port, in the layout of the converted mlx-vlm checkpoints (focal estimator bundled).
  • Encoder, reassemble stages and the focal estimator's trunk cast to float16, except the last encoder block and the last reassemble stage, which are float32. The decoder, the inverse-depth head and the focal head are float32.
  • Every Linear in the encoder's transformer blocks quantized with mlx.nn.quantize (8 bits, group size 64, affine). Nothing else is quantized.
  • No retraining, no change to the architecture.

Reloading this folder with stock mlx_vlm.load gives parameters and outputs bitwise identical to the model the study evaluated (checked on 3 iBims-1 images). model.safetensors SHA-256: 042abad83a2f3cf89f1d7e580f1ebea755b00e9c417d1fce9c403397919b0469.

License and terms

Apple Machine Learning Research Model is licensed under the Apple Machine Learning Research Model License Agreement.

The weights are Apple's Depth Pro 2 H+ weights, modified as listed above, and remain under the Apple Machine Learning Research Model License Agreement, included as LICENSE (byte-identical to Apple's LICENSE_MODEL). They are for non-commercial scientific research only. This is an unofficial release derived from Apple's Depth Pro 2; it is not made, reviewed or endorsed by Apple.

Evaluation data

iBims-1 (100 test images) and the KITTI Eigen test split (200 images used here) are not included. Fidelity is the mean relative difference of inverse depth from Apple's PyTorch model at FP32 on the same image, with a bootstrap 95% interval. The deployment spread is the largest such difference among Apple's own full-precision paths (bf16 on the GPU, Core ML FP16 on the GPU and on the Neural Engine) on the same images, at its upper 95% bound: "within" means no more different from FP32 than choosing another of Apple's official paths. Accuracy uses the ground-truth focal length. Every number here is generated from the study's result files.

More

Study, method and all results: https://shallowend.alethic-labs.com. Code and per-image results: https://github.com/shubhambaid/shallow-end.

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

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

GPU в ailist

Универсальный рантайм

Нельзя запустить

MLX-модели работают только на Apple Silicon, на GPU NVIDIA они не запускаются.

Ревизия весов
44e4977

0 моделей