SOFI: Multi-Scale Deformable Transformer for Camera Calibration with Enhanced Line Queries
Sebastian Janampa, Marios Pattichis
TL;DR
SOFI tackles single-image camera calibration by introducing a multi-scale deformable transformer with enhanced line queries that fuse line content with geometric information. The method enables cross-scale interaction through MSDeformAttn and a redesigned line-query scheme, leading to improved estimation of the zenith vanishing point, horizon line, and field of view, as well as robust line segmentation. Key contributions include a line-queries module with separate content and position components, a revised line-classification and confidence mechanism, and a loss formulation that emphasizes camera-parameter accuracy. Empirically, SOFI achieves state-of-the-art or competitive results on Google Street View, Horizon Line in the Wild, and Holicity while maintaining fast inference, demonstrating robust calibration in diverse and out-of-distribution scenes. This work advances end-to-end transformer-based camera calibration by enabling effective cross-scale feature interaction and richer line representations.
Abstract
Camera calibration consists of estimating camera parameters such as the zenith vanishing point and horizon line. Estimating the camera parameters allows other tasks like 3D rendering, artificial reality effects, and object insertion in an image. Transformer-based models have provided promising results; however, they lack cross-scale interaction. In this work, we introduce \textit{multi-Scale defOrmable transFormer for camera calibratIon with enhanced line queries}, SOFI. SOFI improves the line queries used in CTRL-C and MSCC by using both line content and line geometric features. Moreover, SOFI's line queries allow transformer models to adopt the multi-scale deformable attention mechanism to promote cross-scale interaction between the feature maps produced by the backbone. SOFI outperforms existing methods on the \textit {Google Street View}, \textit {Horizon Line in the Wild}, and \textit {Holicity} datasets while keeping a competitive inference speed.
