How shallow can Depth Pro 2 go?
Apple's Depth Pro 2 predicts metric depth that is sharp at edges and steady across video frames. This note measures how far it can be compressed and sped up on a Mac (PyTorch, Core ML on CPU, GPU and Neural Engine, and MLX) before it loses accuracy, edges, focal length or stability. The noise floor comes first.
TL;DR so far
- There is no run-to-run noise. Every repeat in a new process was bitwise identical (24 checks across PyTorch CPU, MPS and Core ML). The same weights on CPU and GPU at FP32 differ by at most 1.4e-6 in inverse depth. So any larger difference below is real.
- Apple's own full-precision paths already differ by up to 0.64%. bf16 on the GPU, Core ML FP16 on the GPU and on the Neural Engine each move depth a little from FP32. That spread is the bar a compressed model has to meet to count as lossless.
- Core ML on the CPU alone loses accuracy, up to 2.2%. The same FP16 package stays within 0.13% on the GPU. Exported with FP32 compute, the model matches the reference on CPU too, so the cause is FP16 arithmetic in Core ML's CPU path.
- Our Core ML exports are bitwise identical to Apple's released packages (3 sizes), so the Core ML results here apply to Apple's own files.
The compression, backend and video results are still running; this list grows as each phase finishes.
1The model
Depth Pro 2 (Apple ML Research, November 2026) is a DINOv3 vision transformer encoder, a DPT decoder and a separate focal-length estimator, run at the input's native resolution. For video, some encoder blocks attend across frames, so each frame's depth can draw on its neighbours. Four sizes: S (24M parameters), B (97M), L (334M) and H+ (872M), sharing a 23.5M focal estimator. Apple's CDN checkpoints and its Hugging Face files are tensor-for-tensor identical for every size.
2The noise floor
Before ranking anything, the same weights went through every path that should agree, on the same 50 iBims-1 (indoor) and 50 KITTI (outdoor) images, compared with PyTorch on the CPU at FP32. Differences smaller than these are not differences.
Show the data as a table (88 rows)
| Size | Data | Pair | Comparison | Bitwise | AbsRel_inv | δ<1.01 | Edge F1 | Δ δ1 (GT f) |
|---|---|---|---|---|---|---|---|---|
| S | ibims | a | torch CPU FP32 vs torch MPS FP32 | 0.00 | 9.8e-7 | 1.0000 | 1.0000 | -4.2e-7 |
| S | ibims | b | torch CPU FP32 vs torch MPS bf16 autocast | 0.00 | 0.003493 | 0.9709 | 0.9795 | -0.0031 |
| S | ibims | b2 | torch CPU FP32 vs torch MPS fp16 autocast | 0.00 | 0.000560 | 1.0000 | 0.9973 | -6.2e-5 |
| S | ibims | c | torch CPU FP32 repeat (new process) | 1.00 | 0.000000 | 1.0000 | 1.0000 | 0.0000 |
| S | ibims | c2 | torch MPS bf16 repeat (new process) | 1.00 | 0.000000 | 1.0000 | 1.0000 | 0.0000 |
| S | ibims | d2 | Core ML CPU_AND_GPU repeat (new process) | 1.00 | 0.000000 | 1.0000 | 1.0000 | 0.0000 |
| S | ibims | d_all | torch CPU FP32 vs Core ML FP16 ALL | 0.00 | 0.001505 | 0.9959 | 0.9924 | 0.0001 |
| S | ibims | d_ane | torch CPU FP32 vs Core ML FP16 CPU_AND_NE | 0.00 | 0.001570 | 0.9961 | 0.9922 | 7.3e-5 |
| S | ibims | d_cpu | torch CPU FP32 vs Core ML FP16 CPU_ONLY | 0.00 | 0.006048 | 0.8009 | 0.9716 | -0.0061 |
| S | ibims | d_gpu | torch CPU FP32 vs Core ML FP16 CPU_AND_GPU | 0.00 | 0.000805 | 0.9991 | 0.9955 | 0.0002 |
| S | ibims | e | torch MPS bf16 vs Core ML FP16 CPU_AND_GPU (two deployment paths) | 0.00 | 0.003570 | 0.9597 | 0.9787 | 0.0034 |
| B | ibims | a | torch CPU FP32 vs torch MPS FP32 | 0.00 | 9.1e-7 | 1.0000 | 1.0000 | -8.6e-7 |
| B | ibims | b | torch CPU FP32 vs torch MPS bf16 autocast | 0.00 | 0.001849 | 0.9912 | 0.9805 | -5.6e-5 |
| B | ibims | b2 | torch CPU FP32 vs torch MPS fp16 autocast | 0.00 | 0.000297 | 0.9993 | 0.9977 | -0.0001 |
| B | ibims | c | torch CPU FP32 repeat (new process) | 1.00 | 0.000000 | 1.0000 | 1.0000 | 0.0000 |
| B | ibims | c2 | torch MPS bf16 repeat (new process) | 1.00 | 0.000000 | 1.0000 | 1.0000 | 0.0000 |
| B | ibims | d2 | Core ML CPU_AND_GPU repeat (new process) | 1.00 | 0.000000 | 1.0000 | 1.0000 | 0.0000 |
| B | ibims | d_all | torch CPU FP32 vs Core ML FP16 ALL | 0.00 | 0.000972 | 0.9969 | 0.9939 | 0.0004 |
| B | ibims | d_ane | torch CPU FP32 vs Core ML FP16 CPU_AND_NE | 0.00 | 0.000994 | 0.9983 | 0.9941 | 0.0006 |
| B | ibims | d_cpu | torch CPU FP32 vs Core ML FP16 CPU_ONLY | 0.00 | 0.006090 | 0.7812 | 0.9697 | -0.0022 |
| B | ibims | d_gpu | torch CPU FP32 vs Core ML FP16 CPU_AND_GPU | 0.00 | 0.000426 | 1.0000 | 0.9966 | -0.0002 |
| B | ibims | e | torch MPS bf16 vs Core ML FP16 CPU_AND_GPU (two deployment paths) | 0.00 | 0.001947 | 0.9914 | 0.9801 | -0.0001 |
| L | ibims | a | torch CPU FP32 vs torch MPS FP32 | 0.00 | 0.000001 | 1.0000 | 1.0000 | -1.3e-6 |
| L | ibims | b | torch CPU FP32 vs torch MPS bf16 autocast | 0.00 | 0.002573 | 0.9936 | 0.9883 | -0.0013 |
| L | ibims | b2 | torch CPU FP32 vs torch MPS fp16 autocast | 0.00 | 0.000183 | 0.9994 | 0.9983 | 9.0e-5 |
| L | ibims | c | torch CPU FP32 repeat (new process) | 1.00 | 0.000000 | 1.0000 | 1.0000 | 0.0000 |
| L | ibims | c2 | torch MPS bf16 repeat (new process) | 1.00 | 0.000000 | 1.0000 | 1.0000 | 0.0000 |
| L | ibims | d2 | Core ML CPU_AND_GPU repeat (new process) | 1.00 | 0.000000 | 1.0000 | 1.0000 | 0.0000 |
| L | ibims | d_all | torch CPU FP32 vs Core ML FP16 ALL | 0.00 | 0.004032 | 0.9978 | 0.9939 | -0.0036 |
| L | ibims | d_ane | torch CPU FP32 vs Core ML FP16 CPU_AND_NE | 0.00 | 0.004099 | 0.9976 | 0.9939 | -0.0039 |
| L | ibims | d_cpu | torch CPU FP32 vs Core ML FP16 CPU_ONLY | 0.00 | 0.004145 | 0.9173 | 0.9754 | -0.0033 |
| L | ibims | d_gpu | torch CPU FP32 vs Core ML FP16 CPU_AND_GPU | 0.00 | 0.000433 | 0.9995 | 0.9970 | -0.0003 |
| L | ibims | e | torch MPS bf16 vs Core ML FP16 CPU_AND_GPU (two deployment paths) | 0.00 | 0.002569 | 0.9950 | 0.9877 | 0.0011 |
| H | ibims | a | torch CPU FP32 vs torch MPS FP32 | 0.00 | 4.8e-7 | 1.0000 | 1.0000 | 2.0e-7 |
| H | ibims | b | torch CPU FP32 vs torch MPS bf16 autocast | 0.00 | 0.001129 | 0.9983 | 0.9885 | 1.3e-5 |
| H | ibims | b2 | torch CPU FP32 vs torch MPS fp16 autocast | 0.00 | 0.000166 | 1.0000 | 0.9984 | -2.2e-5 |
| H | ibims | c | torch CPU FP32 repeat (new process) | 1.00 | 0.000000 | 1.0000 | 1.0000 | 0.0000 |
| H | ibims | c2 | torch MPS bf16 repeat (new process) | 1.00 | 0.000000 | 1.0000 | 1.0000 | 0.0000 |
| H | ibims | d2 | Core ML CPU_AND_GPU repeat (new process) | 1.00 | 0.000000 | 1.0000 | 1.0000 | 0.0000 |
| H | ibims | d_all | torch CPU FP32 vs Core ML FP16 ALL | 0.00 | 0.001358 | 0.9978 | 0.9919 | 0.0002 |
| H | ibims | d_ane | torch CPU FP32 vs Core ML FP16 CPU_AND_NE | 0.00 | 0.001374 | 0.9976 | 0.9919 | 0.0002 |
| H | ibims | d_cpu | torch CPU FP32 vs Core ML FP16 CPU_ONLY | 0.00 | 0.004008 | 0.9366 | 0.9749 | -0.0027 |
| H | ibims | d_gpu | torch CPU FP32 vs Core ML FP16 CPU_AND_GPU | 0.00 | 0.000428 | 0.9999 | 0.9972 | 6.7e-5 |
| H | ibims | e | torch MPS bf16 vs Core ML FP16 CPU_AND_GPU (two deployment paths) | 0.00 | 0.001228 | 0.9985 | 0.9881 | 5.4e-5 |
| S | kitti | a | torch CPU FP32 vs torch MPS FP32 | 0.00 | 0.000001 | 1.0000 | 1.0000 | 0.0000 |
| S | kitti | b | torch CPU FP32 vs torch MPS bf16 autocast | 0.00 | 0.005527 | 0.8023 | 0.9696 | -0.0017 |
| S | kitti | b2 | torch CPU FP32 vs torch MPS fp16 autocast | 0.00 | 0.000666 | 0.9980 | 0.9961 | 0.0001 |
| S | kitti | c | torch CPU FP32 repeat (new process) | 1.00 | 0.000000 | 1.0000 | 1.0000 | 0.0000 |
| S | kitti | c2 | torch MPS bf16 repeat (new process) | 1.00 | 0.000000 | 1.0000 | 1.0000 | 0.0000 |
| S | kitti | d2 | Core ML CPU_AND_GPU repeat (new process) | 1.00 | 0.000000 | 1.0000 | 1.0000 | 0.0000 |
| S | kitti | d_all | torch CPU FP32 vs Core ML FP16 ALL | 0.00 | 0.002890 | 0.9705 | 0.9762 | -0.0007 |
| S | kitti | d_ane | torch CPU FP32 vs Core ML FP16 CPU_AND_NE | 0.00 | 0.002890 | 0.9705 | 0.9762 | -0.0007 |
| S | kitti | d_cpu | torch CPU FP32 vs Core ML FP16 CPU_ONLY | 0.00 | 0.022459 | 0.1488 | 0.9283 | -0.0086 |
| S | kitti | d_gpu | torch CPU FP32 vs Core ML FP16 CPU_AND_GPU | 0.00 | 0.000902 | 0.9963 | 0.9939 | -0.0002 |
| S | kitti | e | torch MPS bf16 vs Core ML FP16 CPU_AND_GPU (two deployment paths) | 0.00 | 0.005678 | 0.7935 | 0.9696 | 0.0015 |
| B | kitti | a | torch CPU FP32 vs torch MPS FP32 | 0.00 | 7.9e-7 | 1.0000 | 1.0000 | -3.9e-7 |
| B | kitti | b | torch CPU FP32 vs torch MPS bf16 autocast | 0.00 | 0.002443 | 0.9428 | 0.9726 | 0.0002 |
| B | kitti | b2 | torch CPU FP32 vs torch MPS fp16 autocast | 0.00 | 0.000300 | 0.9987 | 0.9966 | 3.3e-5 |
| B | kitti | c | torch CPU FP32 repeat (new process) | 1.00 | 0.000000 | 1.0000 | 1.0000 | 0.0000 |
| B | kitti | c2 | torch MPS bf16 repeat (new process) | 1.00 | 0.000000 | 1.0000 | 1.0000 | 0.0000 |
| B | kitti | d2 | Core ML CPU_AND_GPU repeat (new process) | 1.00 | 0.000000 | 1.0000 | 1.0000 | 0.0000 |
| B | kitti | d_all | torch CPU FP32 vs Core ML FP16 ALL | 0.00 | 0.001719 | 0.9869 | 0.9692 | -0.0006 |
| B | kitti | d_ane | torch CPU FP32 vs Core ML FP16 CPU_AND_NE | 0.00 | 0.001693 | 0.9879 | 0.9692 | -0.0005 |
| B | kitti | d_cpu | torch CPU FP32 vs Core ML FP16 CPU_ONLY | 0.00 | 0.016832 | 0.2584 | 0.9203 | -0.0114 |
| B | kitti | d_gpu | torch CPU FP32 vs Core ML FP16 CPU_AND_GPU | 0.00 | 0.000497 | 0.9980 | 0.9941 | -4.7e-5 |
| B | kitti | e | torch MPS bf16 vs Core ML FP16 CPU_AND_GPU (two deployment paths) | 0.00 | 0.002456 | 0.9418 | 0.9719 | -0.0002 |
| L | kitti | a | torch CPU FP32 vs torch MPS FP32 | 0.00 | 8.3e-7 | 1.0000 | 1.0000 | 2.8e-7 |
| L | kitti | b | torch CPU FP32 vs torch MPS bf16 autocast | 0.00 | 0.003318 | 0.9418 | 0.9716 | 0.0006 |
| L | kitti | b2 | torch CPU FP32 vs torch MPS fp16 autocast | 0.00 | 0.000255 | 0.9973 | 0.9962 | -1.1e-5 |
| L | kitti | c | torch CPU FP32 repeat (new process) | 1.00 | 0.000000 | 1.0000 | 1.0000 | 0.0000 |
| L | kitti | c2 | torch MPS bf16 repeat (new process) | 1.00 | 0.000000 | 1.0000 | 1.0000 | 0.0000 |
| L | kitti | d2 | Core ML CPU_AND_GPU repeat (new process) | 1.00 | 0.000000 | 1.0000 | 1.0000 | 0.0000 |
| L | kitti | d_all | torch CPU FP32 vs Core ML FP16 ALL | 0.00 | 0.004569 | 0.7553 | 0.9322 | -0.0023 |
| L | kitti | d_ane | torch CPU FP32 vs Core ML FP16 CPU_AND_NE | 0.00 | 0.004521 | 0.7583 | 0.9325 | -0.0022 |
| L | kitti | d_cpu | torch CPU FP32 vs Core ML FP16 CPU_ONLY | 0.00 | 0.019604 | 0.1416 | 0.8844 | -0.0100 |
| L | kitti | d_gpu | torch CPU FP32 vs Core ML FP16 CPU_AND_GPU | 0.00 | 0.001317 | 0.9944 | 0.9917 | 0.0002 |
| L | kitti | e | torch MPS bf16 vs Core ML FP16 CPU_AND_GPU (two deployment paths) | 0.00 | 0.002534 | 0.9557 | 0.9705 | -0.0004 |
| H | kitti | a | torch CPU FP32 vs torch MPS FP32 | 0.00 | 5.1e-7 | 1.0000 | 1.0000 | 0.0000 |
| H | kitti | b | torch CPU FP32 vs torch MPS bf16 autocast | 0.00 | 0.001360 | 0.9799 | 0.9774 | 0.0001 |
| H | kitti | b2 | torch CPU FP32 vs torch MPS fp16 autocast | 0.00 | 0.000176 | 0.9988 | 0.9971 | 4.2e-6 |
| H | kitti | c | torch CPU FP32 repeat (new process) | 1.00 | 0.000000 | 1.0000 | 1.0000 | 0.0000 |
| H | kitti | c2 | torch MPS bf16 repeat (new process) | 1.00 | 0.000000 | 1.0000 | 1.0000 | 0.0000 |
| H | kitti | d2 | Core ML CPU_AND_GPU repeat (new process) | 1.00 | 0.000000 | 1.0000 | 1.0000 | 0.0000 |
| H | kitti | d_all | torch CPU FP32 vs Core ML FP16 ALL | 0.00 | 0.001531 | 0.9675 | 0.9561 | -4.0e-5 |
| H | kitti | d_ane | torch CPU FP32 vs Core ML FP16 CPU_AND_NE | 0.00 | 0.002470 | 0.9629 | 0.9562 | -3.7e-5 |
| H | kitti | d_cpu | torch CPU FP32 vs Core ML FP16 CPU_ONLY | 0.00 | 0.020809 | 0.0624 | 0.9171 | -0.0021 |
| H | kitti | d_gpu | torch CPU FP32 vs Core ML FP16 CPU_AND_GPU | 0.00 | 0.000512 | 0.9979 | 0.9940 | 3.1e-5 |
| H | kitti | e | torch MPS bf16 vs Core ML FP16 CPU_AND_GPU (two deployment paths) | 0.00 | 0.001342 | 0.9795 | 0.9768 | -7.5e-5 |
Why Core ML on the CPU drifts. Exported with FP32 compute, the same model matches the reference on the CPU (B kitti 5.6e-7, S ibims 9.0e-7, S kitti 7.3e-7), while Apple's FP16 package on the CPU does not (B kitti 1.37%, S ibims 0.60%, S kitti 2.33%). Core ML's GPU path keeps more precision for the same FP16 program. Anywhere Core ML falls back to the CPU, outdoor depth moves by 1 to 2%.
3Backends at full precision
Accuracy against ground truth, latency and peak memory for every size on PyTorch, Core ML (each compute unit) and MLX. Running.
4How far compression goes
5Which parts are sensitive
One component at a time compressed hard (within-frame encoder blocks, cross-frame blocks, decoder, head, focal estimator) with the rest at full precision. Running.
6Video stability
Jitter along ground-truth motion on Sintel and flicker on real public clips, for every video mode and the best compressed variants. Running.
7What to use
The practical answer (which size, backend and precision for which use) comes last, from the measured frontier.
8Limitations
- One machine, a Mac mini with an M4 Pro and 24 GB. Speeds will differ on other chips; fidelity results should carry over.
- Evaluation subsets: iBims-1 (100 images), 200 KITTI frames, Sintel (metrics only, as its license forbids republishing frames). The paper's exact frames are not published, so comparisons with it are approximate.
- Weight compression only, with no retraining or calibration-aware fine-tuning.
9Reproduce it
git clone https://github.com/shubhambaid/shallow-end && cd shallow-end
uv sync --frozen --extra mac # Apple Silicon Mac
python scripts/download_models.py # pinned weights, sha256 recorded
python -I scripts/download_data.py kitti_val_selection ibims1 sintel_depth sintel_complete
python -m shallowend.datasets && python -m shallowend.floor S --dataset ibimsEvery number on this page is read from results/ at build time (commit 008052f, 2026-11-30). Summary tables are in results/summary.