A Dual-Modulation Framework for RGB-T Crowd Counting via Spatially Modulated Attention and Adaptive Fusion

Yuhong Feng, Hongtao Chen, Qi Zhang, Jie Chen, Zhaoxi He +2 more
9/21/2025
cs.CV

Official code: Cht2924/RGBT-Crowd-Counting (5 stars, last commit 2025-10-18).

Abstract

Accurate RGB-Thermal (RGB-T) crowd counting is crucial for public safety in challenging conditions. While recent Transformer-based methods excel at capturing global context, their inherent lack of spatial inductive bias causes attention to spread to irrelevant background regions, compromising crowd localization precision. Furthermore, effectively bridging the gap between these distinct modalities remains a major hurdle. To tackle this, we propose the Dual Modulation Framework, comprising two modules: Spatially Modulated Attention (SMA), which improves crowd localization by using a learnable Spatial Decay Mask to penalize attention between distant tokens and prevent focus from spreading to the background; and Adaptive Fusion Modulation (AFM), which implements a dynamic gating mechanism to prioritize the most reliable modality for adaptive cross-modal fusion. Extensive experiments on RGB-T crowd counting datasets demonstrate the superior performance of our method compared to previous works. Code available at https://github.com/Cht2924/RGBT-Crowd-Counting.

View on arXivView PDF

Code Implementations(1)

50PythonAug 29, 20251 years ago

Similar Papers

Cite this paper

@article{feng2025dualmodulation,
  title  = {A Dual-Modulation Framework for RGB-T Crowd Counting via Spatially Modulated Attention and Adaptive Fusion},
  author = {Yuhong Feng and Hongtao Chen and Qi Zhang and Jie Chen and Zhaoxi He and Mingzhe Liu and Jianghai Liao},
  year   = {2025},
  eprint = {2509.17079},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2509.17079v1}
}

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/2509.17079.svg)](https://codeofpaper.com/paper/2509.17079)

Discussion