TranStable: Towards Robust Pixel-level Online Video Stabilization by Jointing Transformer and CNN
zhizhen li, tianyi zhuo, Yifei Cao, Jizhe Yu, Yu Liu
TL;DR
TranStable tackles online video stabilization by fusing global and local cues through a Transformer-CNN generator (TUNet) and enforcing pixel-level realism with a Swin Transformer–based Stability Discriminator Module (SDM). The Hierarchical Adaptive Fusion Module (HAFM) enables effective cross-branch interaction, producing robust pixel-level warping maps that minimize jitter while preserving texture and field of view. Training combines content, shape, and temporal losses, along with discriminator-based guidance, and uses a 31-frame sliding window for inference to enforce temporal consistency. On NUS, DeepStab, and Selfie benchmarks, TranStable achieves state-of-the-art performance with improved cropping, reduced distortion, and smoother stabilization, offering an efficient online solution with minimal post-processing.
Abstract
Video stabilization often struggles with distortion and excessive cropping. This paper proposes a novel end-to-end framework, named TranStable, to address these challenges, comprising a genera tor and a discriminator. We establish TransformerUNet (TUNet) as the generator to utilize the Hierarchical Adaptive Fusion Module (HAFM), integrating Transformer and CNN to leverage both global and local features across multiple visual cues. By modeling frame-wise relationships, it generates robust pixel-level warping maps for stable geometric transformations. Furthermore, we design the Stability Discriminator Module (SDM), which provides pixel-wise supervision for authenticity and consistency in training period, ensuring more complete field-of-view while minimizing jitter artifacts and enhancing visual fidelity. Extensive experiments on NUS, DeepStab, and Selfie benchmarks demonstrate state-of-the-art performance.
