DarSwin-Unet: Distortion Aware Encoder-Decoder Architecture
Akshaya Athwale, Ichrak Shili, Émile Bergeron, Ola Ahmad, Jean-François Lalonde
TL;DR
The paper tackles pixel-level tasks on wide-angle fisheye images where distortions break translational symmetry, modeling distortion with the Unified camera model parameter $\xi \in [0,1]$ and projection $r_d = \mathcal{P}(\theta)$. It extends the distortion-aware radial Swin Transformer (DarSwin) into a full encoder-decoder architecture called DarSwin-Unet and adds a novel sampling function $g(\theta)$ to reduce input sparsity, enabling robust depth estimation. The architecture introduces an azimuth patch expanding layer and a fixed $k$-NN projection to map polar features back to Cartesian pixels, facilitating high-quality pixel-level outputs. Experiments on synthetic Matterport3D-based wide-angle data show state-of-the-art zero-shot generalization to unseen distortions and robustness across distortion levels, outperforming Swin-Unet, Swin-UPerNet, and DAT-UPerNet baselines.
Abstract
Wide-angle fisheye images are becoming increasingly common for perception tasks in applications such as robotics, security, and mobility (e.g. drones, avionics). However, current models often either ignore the distortions in wide-angle images or are not suitable to perform pixel-level tasks. In this paper, we present an encoder-decoder model based on a radial transformer architecture that adapts to distortions in wide-angle lenses by leveraging the physical characteristics defined by the radial distortion profile. In contrast to the original model, which only performs classification tasks, we introduce a U-Net architecture, DarSwin-Unet, designed for pixel level tasks. Furthermore, we propose a novel strategy that minimizes sparsity when sampling the image for creating its input tokens. Our approach enhances the model capability to handle pixel-level tasks in wide-angle fisheye images, making it more effective for real-world applications. Compared to other baselines, DarSwin-Unet achieves the best results across different datasets, with significant gains when trained on bounded levels of distortions (very low, low, medium, and high) and tested on all, including out-of-distribution distortions. We demonstrate its performance on depth estimation and show through extensive experiments that DarSwin-Unet can perform zero-shot adaptation to unseen distortions of different wide-angle lenses.
