Skip to main content
QUICK REVIEW

[Paper Review] FishFormer: Annulus Slicing-based Transformer for Fisheye Rectification with Efficacy Domain Exploration

Shangrong Yang, Chun-Yu Lin|arXiv (Cornell University)|Jul 5, 2022
Image Enhancement TechniquesComputer Science6 citations
TL;DR

FishFormer proposes a novel Transformer-based fisheye image rectification method using annulus slicing to preserve distortion uniformity across patches, enhancing both global and local perception. It introduces a layer attention mechanism for focused local texture perception and achieves state-of-the-art performance on multiple datasets.

ABSTRACT

Numerous significant progress on fisheye image rectification has been achieved through CNN. Nevertheless, constrained by a fixed receptive field, the global distribution and the local symmetry of the distortion have not been fully exploited. To leverage these two characteristics, we introduced Fishformer that processes the fisheye image as a sequence to enhance global and local perception. We tuned the Transformer according to the structural properties of fisheye images. First, the uneven distortion distribution in patches generated by the existing square slicing method confuses the network, resulting in difficult training. Therefore, we propose an annulus slicing method to maintain the consistency of the distortion in each patch, thus perceiving the distortion distribution well. Second, we analyze that different distortion parameters have their own efficacy domains. Hence, the perception of the local area is as important as the global, but Transformer has a weakness for local texture perception. Therefore, we propose a novel layer attention mechanism to enhance the local perception and texture transfer. Our network simultaneously implements global perception and focused local perception decided by the different parameters. Extensive experiments demonstrate that our method provides superior performance compared with state-of-the-art methods.

Motivation & Objective

  • Address the limitations of CNNs and standard square slicing in capturing global distortion and local symmetry in fisheye images.
  • Overcome the inconsistency in distortion distribution caused by square patch slicing, which hinders network learning.
  • Exploit the efficacy domain of distortion parameters to enable region-specific local perception.
  • Enhance local texture perception in the Transformer architecture, which traditionally underperforms in local detail capture.
  • Improve training stability and prediction accuracy by using truncated normal distribution weights for patch-wise loss.

Proposed method

  • Propose an annulus slicing method that divides fisheye images into concentric rings to maintain consistent distortion per patch and gradual distortion variation between patches.
  • Design a novel layer attention mechanism that computes attention between adjacent layers to transfer rich local texture features from early layers to deeper layers.
  • Introduce a patch loss weighting scheme using truncated normal probability densities to reflect the confidence of distortion parameter predictions based on their spatial efficacy domains.
  • Structure the Transformer encoder to process fisheye images as a sequence of annular patches, enabling long-range global context modeling.
  • Integrate both global perception (via standard self-attention) and focused local perception (via layer attention) in a unified architecture.
  • Optimize the network with multi-scale evaluation metrics including PSNR, SSIM, MS-SSIM, FID, and CW-SSIM across diverse datasets.

Experimental results

Research questions

  • RQ1Can annulus slicing improve the consistency of distortion representation in Transformer-based fisheye rectification compared to standard square slicing?
  • RQ2Does the efficacy domain of distortion parameters vary spatially, and can this be leveraged to improve local perception?
  • RQ3Can a layer attention mechanism enhance local texture perception in Transformers, which typically underperform on fine-grained details?
  • RQ4How does the integration of global and local perception affect rectification accuracy and generalization across datasets?
  • RQ5What is the optimal network depth and attention configuration for balancing performance and computational cost in fisheye rectification?

Key findings

  • FishFormer achieves a PSNR of 25.43, SSIM of 0.8412, MS-SSIM of 0.9411, FID of 73.4, and CW-SSIM of 0.9388 on the Place2 dataset, outperforming state-of-the-art methods.
  • The annulus slicing method improves performance by up to 1.4 dB in PSNR and 0.08 in MS-SSIM compared to square slicing, especially at higher patch counts (e.g., 64 patches).
  • The layer attention mechanism (LTM) increases PSNR by 0.09 and MS-SSIM by 0.0085 compared to the baseline without LTM, demonstrating its effectiveness in local texture enhancement.
  • Using first-layer features as queries (q) in the layer attention mechanism yields the best performance (PSNR: 25.43), indicating optimal texture transfer.
  • The optimal network depth is 5 Transformer blocks, as deeper networks (e.g., 7 blocks) show performance degradation, suggesting diminishing returns beyond a certain depth.
  • Cross-dataset testing confirms generalization: FishFormer maintains strong performance on CelebA when trained on Place2, indicating robustness and domain generalization.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.