Depth Pro 2, tested in the field

Going to
great depths.

Ordinary video, rebuilt in 3D with Apple’s Depth Pro 2.

Every clip here is plain 2D footage. Apple’s Depth Pro 2 estimated the distance of every pixel in every frame, and this page uses that depth live in your browser. Orbit it. Refocus it. Light it. Measure it.

An independent test of Apple’s open research model, run on an M2 MacBook. This page is not made by or affiliated with Apple.

Loading clip…

Eight ways to prove
the depth is real.

A depth map is easy to make look good as a picture. These modes use it the way a camera, a renderer or a tape measure would, so errors have nowhere to hide.

3D orbit

Look around the subject.

Each frame becomes a surface pushed back by its depth, drawn with the camera’s own field of view. Behind it sits a second layer: the background with the subject removed, filled from other frames of the clip where that spot was visible.

Refocus

Pull focus after the fact.

Click anything to focus there. Blur grows with distance from the focal plane, as a wide lens does. Fur and thin edges staying crisp against a blurred background is the test of boundary quality.

Lens

Change the lens afterwards.

Steady the shot, go wider or tighter, and set the f-stop, with blur worked out from real millimetres and metres. Going wider borrows from other frames of the clip where it can; anything never filmed is shown as a dim blur.

Relight

Carry a lamp through it.

A lamp sweeps across in front of the scene. Surface direction comes from the depth map and shadows are traced through it, so things shade, rim-light and block the lamp as solid objects.

Objects

Put things in the scene.

Three mirror balls orbit the subject at its real distance. They vanish behind anything nearer, reflect the video and shade the ground. This is the occlusion test augmented reality depends on.

Fog

Fill the air.

Fog is marched along each line of sight only as far as that pixel’s depth, so it thickens with real distance and drifts between near and far things.

Measure

Read it in metres.

Lines of equal distance, spaced in real metres. Hover for the distance from the camera. Click two points for the straight-line distance between them in 3D.

Depth map

See the raw answer.

Drag to wipe between the video and the depth the model produced for it. Warm is near, cool is far.

Camera solve

Video in.
Cameras and a 3D scene out.

No LiDAR and no phone tracking. Depth Pro 2 gives depth and a first guess at the lens for every frame; the cameras are then solved from the video against its own depth, refined all together with loop closures, and a Gaussian splat is trained on the result. We checked it against a real phone scan of the same room, frame for frame.

25.4 dB
splat from video alone, on views held back from training. The phone scan with LiDAR scores 26.3 on the same views.
1.3 cm
typical gap between the solved camera path and the phone’s, over a 5.2 m path. It was 5.9 cm before the cameras were refined together.
0.2%
lens error after the solve corrects the model’s first guess, which was 3.1% off on this clip.
552
frames of one continuous shot through a hall, fetched from a web link and solved in about 45 minutes on a MacBook. The solver spots the film’s first dissolve and stops there.
SceneFramesFirst recipeNowWhat changed it
A room, checked against a phone scan6322.3 dB25.4 dBRefining all cameras together
Old house, two rooms8219.3 dB25.5 dBThe solve moved the lens guess by 19%
Hall, 300 frames30012.2 dB22.7 dBKeeping far walls; a point grid sized to the space
Hall, the whole first shot552365 frames placed22.9 dBLoop closures; stopping at the film’s first dissolve
Cathedral nave7923.3 dB, tuned by hand22.8 dBNow with no hand tuning

Scores are PSNR on frames the trainer never saw; higher is better. Single runs, so a few tenths of a decibel either way is noise. The room is the only scene with ground truth: its shape is right to about a centimetre, but its overall size comes out about 6% large, which is the depth model’s own metric error. Clear cases, mirrors and people moving through the shot still break it.

Video mode

Steady from frame
to frame.

Run on one frame at a time, the model re-guesses how far away the whole scene is on every frame, and the guess wobbles. In video mode each frame also looks at the frames before it, and the scene holds still.

The chart follows one number through the bear clip: the median distance of everything in frame. The camera barely moves, so that number should barely move. You can watch the same thing in 3D: open “Bear, no video mode” in the viewer.

More clips, as numbers
ClipModelFlicker, one frame at a timeFlicker, video modeReduction

Flicker here is the median frame-to-frame change in log depth along one line of the picture, times 100. It also counts real motion, so compare the two columns of a row, not one clip with another.

How these were made
ClipModelDepth sizeFramesTime per frameDepth rangeField of view
  • Everything ran on one M2 MacBook with 16 GB, in PyTorch on the Apple GPU, with Apple’s released weights. Nothing here is real time on that machine.
  • Video mode used a rolling window of 8 frames. The model estimated the focal length itself; no camera data was supplied.
  • Depth travels inside each video file as two grey tiles, a coarse one and a fine one, which gives the browser about 11 bits of depth after video compression.
  • The viewer steadies the stored depth slightly from frame to frame and smooths it for lighting, to hide video-compression noise. The clip marked “no video mode” is shown without that steadying, so its flicker is the model’s own.
  • Metres are the model’s estimate. On our own phone footage with a LiDAR reference, shape was right to 2–3% but absolute scale drifted by ±20–35%, so treat readouts as approximate.
  • Apple’s weights are licensed for non-commercial research only.

Depth Pro 2 is a research model released by Apple. This page is an independent test and is not made by, endorsed by or affiliated with Apple. Footage and photos are from Wikimedia Commons under the licences below.