Extending Foundational Monocular Depth Estimators to Fisheye Cameras with Calibration Tokens

Suchisrit Gangopadhyay, Jung-Hee Kim, Xien Chen, Patrick Rim, Hyoungseob Park, Alex Wong

TL;DR

This paper introduces "Calibration Tokens," a novel, lightweight method to adapt existing monocular depth estimation models (trained on standard perspective cameras) to work with fisheye cameras. By learning a small set of "tokens" that modulate the internal representations of these models, they achieve state-of-the-art performance on fisheye images without retraining the entire model or requiring large fisheye-specific datasets.

What Problem Does This Paper Address?

Estimating depth from a single image (monocular depth estimation) is crucial for many applications like robotics and autonomous driving. "Foundational Monocular Depth Estimators" (FMDEs) have become incredibly powerful, trained on massive datasets of perspective images. However, these models struggle when presented with images from fisheye cameras. Fisheye lenses capture a much wider field of view but introduce significant distortion, fundamentally changing the image geometry compared to perspective cameras. This "covariate shift" leads to inaccurate depth predictions.

Existing solutions, like re-projecting fisheye images to a canonical perspective view, are computationally expensive and can introduce artifacts. Training entirely new models for fisheye cameras is hampered by the lack of large-scale fisheye datasets. While fine-tuning existing FMDEs is an option, it can lead to a loss of generalizability across different camera types and scenes. This paper aims to bridge this gap by enabling FMDEs to seamlessly handle fisheye images without these drawbacks.

Methods

The core innovation is "Calibration Tokens." The authors hypothesize that the errors in fisheye depth estimation stem from the latent representations learned by FMDEs, not from a fundamental inability of the model to understand depth. Their approach leverages the Transformer architecture common in many FMDEs, which represents images as sequences of "tokens."

Calibration Tokens are a small set of trainable parameters that are appended to the input sequence of image tokens at each layer of the FMDE's encoder. These tokens act as an adaptation mechanism, learning to "recalibrate" the fisheye image embeddings to align with the distribution of embeddings that the FMDE expects from perspective images. Crucially, the original FMDE model remains frozen, and only the Calibration Tokens are trained. This ensures that the model's generalizability to perspective images is preserved.

The training is self-supervised. They synthesize fisheye images from existing perspective image datasets by applying artificial fisheye distortion. The key insight for the loss function is to compute the depth error in the original perspective frame. This is achieved by predicting depth from the synthesized fisheye image, then "undistorting" this predicted depth map back to the perspective view, and finally comparing it to the depth predicted by the FMDE on the original perspective image. This avoids introducing artifacts from re-projection into the supervision signal.

Datasets

The method is trained using publicly available, large-scale datasets of calibrated perspective images. These include:

  • NYUv2: Indoor scenes.
  • VOID: Indoor office, classroom, and stairwell scenes.
  • IRS: Rendered indoor scenes (home, restaurant, store).
  • Hypersim: Photorealistic synthetic indoor scenes.
  • Waymo: Urban driving scenes.

For evaluation, they use:

  • ScanNet++: Indoor scenes with real fisheye images and ground truth depth.
  • KITTI-360: Suburban driving scenes with real fisheye images, featuring a different field of view and sparser ground truth compared to ScanNet++.

Key Insights and Ideas

  • Latent Space Alignment is Key: The problem isn't that FMDEs can't understand depth, but that the representation of fisheye images in their latent space is different from perspective images. Calibration Tokens bridge this gap by aligning these latent spaces.
  • Self-Supervision in the Original Frame: Computing the loss in the original perspective frame, rather than the distorted fisheye frame, is crucial for avoiding artifacts and leveraging high-fidelity supervision from perspective depth estimates.
  • Lightweight Adaptation: The power of FMDEs lies in their expressive latent space. Instead of retraining, a small set of learned tokens can effectively modulate this space for new domains.
  • Backward Compatibility: The method seamlessly integrates with existing FMDEs. For perspective images, simply omit the tokens; for fisheye, append them. This is a significant practical advantage.

Key Results

The proposed method, "Calibration Tokens," consistently improves depth estimation accuracy on fisheye images across various FMDEs (MiDaS, DepthAnything, UniDepth).

  • Indoor (ScanNet++): UniDepth with Calibration Tokens achieved the best performance, outperforming baselines by 11-14% in RMSE. MiDaS and DepthAnything saw improvements of 12% and 17% respectively.
  • Outdoor (KITTI-360): Calibration Tokens improved accuracy across all tested FMDEs, demonstrating robustness to different fisheye distortions and challenging outdoor scenes.
  • Computational Efficiency: The addition of Calibration Tokens introduces minimal overhead, with less than 1MB of additional memory and less than 1ms of added inference latency.
  • Comparison to Finetuning: Finetuning the entire model led to a significant performance drop, highlighting the value of preserving the original pre-trained weights.

Limitations and Future Work

  • FMDE Dependency: The success of Calibration Tokens is inherently tied to the quality and representational power of the underlying FMDE. If an FMDE struggles with certain scenes or lighting conditions in perspective, these issues will likely persist in the adapted fisheye model.
  • Future Directions: The authors suggest that their framework can be readily transferred to new FMDEs as they emerge, especially those based on transformer architectures. The method's success with a single set of tokens for both indoor and outdoor scenarios suggests a generalizable approach for adapting vision foundational models to new domains.

Summary updated

BibTeX
@inproceedings{gangopadhyay2025extending,
  author = {Suchisrit Gangopadhyay and Jung-Hee Kim and Xien Chen and Patrick Rim and Hyoungseob Park and Alex Wong},
  title = {{Extending Foundational Monocular Depth Estimators to Fisheye Cameras with Calibration Tokens}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2025},
}
Figure