TECHNOLOGY

Original TartanAir depth: metric distance and stereo disparity are different targets

In this article
THE QUICK TAKE

Depth-to-disparity conversion depends on the matching camera geometry and pixel scale; a copied conversion constant is not universal across releases or resizing.

Identify which target the array represents

A stereo model consumes a TartanAir depth array as if it were already a disparity image. Both have image-shaped storage, but they encode different geometric quantities. Define the target before choosing normalization or loss. Metric depth and pixel disparity have an inverse relationship under the selected stereo geometry, so confusing them changes both value ordering and the meaning of an error. A successful array read provides no evidence that the target matches the model’s output convention.

Pin the original release contract

The original TartanAir project describes simulated observations and geometric reference data. The author tools repository also points to a newer release. Keep the actual release and camera identity with a derived dataset rather than applying an older camera assumption to every asset carrying the TartanAir name. Simulation supplies useful reference geometry, but it does not make representation conventions identical across separate releases or later camera-processing choices.

Use the documented depth interpretation

The original data-type guide identifies depth in metric units and gives a stereo disparity conversion based on its camera setup. It also explains that distant sky geometry can have a large finite depth rather than mathematical infinity. Preserve that distinction when defining valid targets. A finite value alone does not establish that a pixel represents a nearby measurable surface, and an application’s distance cutoff should remain an explicit processing policy.

Update geometry when image scale changes

If the stereo pair is resized, keep focal length expressed in the new pixel coordinates before deriving disparity. Metric depth itself does not become a different physical distance because an image was resized, but the corresponding pixel disparity changes with image scale. Record the camera parameters used at the conversion stage. This avoids treating a conversion factor copied from an original-resolution example as a universal constant after a custom crop, resize or camera substitution has changed the image representation.

Validate a reversible target conversion

Select valid finite-depth pixels, compute the intended disparity and verify that the declared inverse conversion recovers their metric distances under the same geometry. Keep sky handling and other masks separate from the conversion itself. Image coordinate guidance supports resizing interpretation; software reproducibility preserves the release adapter. Report target units, camera identity and processing policy together so depth supervision, disparity supervision and distant synthetic geometry remain distinct, inspectable parts of the experiment.

Earn rental income from GPUs

Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.

Explore GPU hosting
← All articles