DarSwin: Distortion Aware Radial Swin Transformer

Akshay Athwale, Arman Afrasiyabi, Justin Lague, Ichrak Shili, Ola Ahmad +1 more
2/14/2026

No official code found. Best implementation: ThalesGroup/darswin (8 stars, MIT, last commit 2023-10-04).

Abstract

Wide-angle lenses are commonly used in perception tasks requiring a large field of view. Unfortunately, these lenses produce significant distortions making conventional models that ignore the distortion effects unable to adapt to wide-angle images. In this paper, we present a novel transformer-based model that automatically adapts to the distortion produced by wide-angle lenses. We leverage the physical characteristics of such lenses, which are analytically defined by the radial distortion profile (assumed to be known), to develop a distortion aware radial swin transformer (DarSwin). In contrast to conventional transformer-based architectures, DarSwin comprises a radial patch partitioning, a distortion-based sampling technique for creating token embeddings, and an angular position encoding for radial patch merging. We validate our method on classification tasks using synthetically distorted ImageNet data and show through extensive experiments that DarSwin can perform zero-shot adaptation to unseen distortions of different wide-angle lenses. Compared to other baselines, DarSwin achieves the best results (in terms of Top-1 accuracy) 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. The code and models are publicly available at https://lvsn.github.io/darswin/

View on arXivView PDF

Code Implementations(1)

MIT

Official implementation of "DarSwin : Distortion Aware Radial Swin Transformer"

83Shell, PythonSep 19, 20233 years agoMIT

Similar Papers

Cite this paper

@article{athwale2026darswin,
  title  = {DarSwin: Distortion Aware Radial Swin Transformer},
  author = {Akshay Athwale and Arman Afrasiyabi and Justin Lague and Ichrak Shili and Ola Ahmad and Jean-François Lalonde},
  year   = {2026},
  eprint = {2304.09691},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/pdf/2304.09691},
  journal = {ICCV 2023 2023}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2304.09691.svg)](https://codeofpaper.com/paper/2304.09691)

Discussion