SIR: Self-supervised Image Rectification via Seeing the Same Scene from Multiple Different Lenses

Jinlong Fan, Jing Zhang, Dacheng TaoIEEE TIP 2020 · DOI

Abstract

Deep learning has demonstrated its power in image rectification by leveraging the representation capacity of deep neural networks via supervised training based on a large-scale synthetic dataset. However, the model may overfit the synthetic images and generalize not well on real-world fisheye images due to the limited universality of a specific distortion model and the lack of explicitly modeling the distortion and rectification process. In this paper, we propose a novel self-supervised image rectification (SIR) method based on an important insight that the rectified results of distorted images of a same scene from different lens should be the same. Specifically, we devise a new network architecture with a shared encoder and several prediction heads, each of which predicts the distortion parameter of a specific distortion model. We further leverage a differentiable warping module to generate the rectified images and re-distorted images from the distortion parameters and exploit the intra- and inter-model consistency between them during training, thereby leading to a self-supervised learning scheme without the need for ground-truth distortion parameters or normal images. Experiments on synthetic dataset and real-world fisheye images demonstrate that our method achieves comparable or even better performance than the supervised baseline method and representative state-of-the-art methods.

Introduction

Wide field-of-view (FOV) cameras, such as fisheye lenses, are indispensable in robotics, autonomous driving, and surveillance. However, they introduce significant radial distortion that violates the standard pinhole camera model assumptions. Current deep learning solutions typically rely on supervised learning, training on massive synthetic datasets with known ground-truth distortion parameters. These models often suffer from two major flaws: overfitting to specific synthetic mathematical models and poor generalization to real-world lenses where perfectly aligned ground-truth pairs are nearly impossible to collect.

The authors introduce SIR, a self-supervised framework for image rectification that eliminates the need for ground-truth labels or "normal" reference images. By understanding the underlying geometry of distortion through consistency constraints, the method achieves state-of-the-art performance and generalizes far better to real-world fisheye cameras than traditional supervised models.

Methodology

The core innovation of SIR is the self-supervised learning scheme built on the insight that rectified versions of distorted images of the same scene—even if created by different "virtual" lenses—must be identical.

The SIR framework uses a shared ResNet-50 encoder to predict parameters for FOV, DM, and ED models simultaneously.

Key Components:

  • Multi-Head Architecture: A shared ResNet-50 encoder extracts features from a distorted image. These features are passed to three separate prediction heads, each corresponding to a different mathematical distortion model: FOV, Division Model (DM), and Equidistant (ED).
  • Differentiable Warping Module: This module uses predicted parameters to perform image transformations. Being differentiable allows the network to be trained end-to-end using image-based losses.
  • Intra-model Consistency: The model ensures that a rectified image can be "re-distorted" back to the original input using the same parameters, enforcing mathematical self-consistency.
  • Inter-model Consistency: This forces the rectified images produced by different distortion heads (e.g., FOV vs. DM) to be identical, preventing the model from finding "lazy" shortcuts that only work for one specific lens model.

Evaluation and Results

The researchers evaluated SIR on benchmarks including ADE20k, WireFrame, and COCO2017, alongside a real-world fisheye video dataset.

Key Performance Metrics:

  • Superior Generalization: On the ADE20k dataset, SIR achieved a peak PSNR of 25.77 dB, significantly outperforming previous state-of-the-art supervised methods like Rong et al. (17.52 dB).
  • Real-World Performance: Qualitative results on real fisheye images show that SIR effectively straightens curved lines in complex scenes (like libraries or architectural interiors) where supervised models often leave residual distortions.
  • Efficiency: Despite the multi-head architecture, the model is highly efficient, running at over 60 FPS on an NVIDIA Tesla V100.
Visual comparison of rectification results on real-world fisheye images, demonstrating SIR's ability to straighten curved lines more effectively than previous methods.

Through ablation studies, the authors found that the Division Model (DM) generally offers the best balance of complexity and accuracy, showing the highest "universality" across different datasets. Joint training across multiple models was shown to significantly boost this universality while maintaining self-consistency.

Discussion and Future Work

While SIR represents a major advancement, the authors identify areas for future research. Currently, the method relies on distortion models with analytical warping functions; future iterations might explore "model-free" warping field predictions for more complex, non-standard lenses. Additionally, while the loss is self-supervised, the current training still utilizes synthetic distortions. Direct training on unlabeled real-world distorted images could further bridge the domain gap. Finally, expanding the range of distortion parameters during training could improve robustness to extreme wide-angle lenses.

Summary updated

BibTeX
@article{fan2020sir,
  author = {Jinlong Fan and Jing Zhang and Dacheng Tao},
  title = {{SIR: Self-supervised Image Rectification via Seeing the Same Scene from Multiple Different Lenses}},
  journal = {IEEE Trans. Image Process.},
  year = {2020},
  doi = {10.1109/tip.2022.3231087},
}
Figure