Skip to main content
QUICK REVIEW

[Paper Review] CrowdFormer: Weakly-supervised Crowd counting with Improved Generalizability

Siddharth Singh Savner, Vivek Kanhangad|arXiv (Cornell University)|Mar 7, 2022
Video Surveillance and Tracking MethodsComputer Science4 citations
TL;DR

CrowdFormer proposes a weakly-supervised crowd counting method using a pyramid vision transformer (PVTv2) backbone to capture multi-scale, global contextual features, with a learnable feature aggregation module and simple regression head. It achieves state-of-the-art performance on benchmark datasets and superior generalizability in cross-dataset evaluations, outperforming many fully supervised methods.

ABSTRACT

Convolutional neural networks (CNNs) have dominated the field of computer vision for nearly a decade due to their strong ability to learn local features. However, due to their limited receptive field, CNNs fail to model the global context. On the other hand, transformer, an attention-based architecture can model the global context easily. Despite this, there are limited studies that investigate the effectiveness of transformers in crowd counting. In addition, the majority of the existing crowd counting methods are based on the regression of density maps which requires point-level annotation of each person present in the scene. This annotation task is laborious and also error-prone. This has led to increased focus on weakly-supervised crowd counting methods which require only the count-level annotations. In this paper, we propose a weakly-supervised method for crowd counting using a pyramid vision transformer. We have conducted extensive evaluations to validate the effectiveness of the proposed method. Our method is comparable to the state-of-the-art on the benchmark crowd datasets. More importantly, it shows remarkable generalizability.

Motivation & Objective

  • To address the high annotation cost of point-level density map supervision in crowd counting by enabling weakly-supervised learning using only count-level annotations.
  • To improve crowd counting performance by leveraging global context modeling through vision transformers, overcoming the limited receptive field of CNNs.
  • To enhance model generalizability across diverse crowd scenes by designing a multi-scale feature aggregation mechanism in a transformer-based architecture.
  • To achieve competitive or superior performance compared to state-of-the-art fully supervised methods, especially in cross-dataset evaluation settings.

Proposed method

  • Employs a pre-trained PVTv2 backbone to extract multi-scale features with global context from input images.
  • Introduces a learnable feature aggregation module that fuses features from all four stages of the pyramid vision transformer.
  • Uses a simple regression head to map the aggregated features directly to the final crowd count, avoiding density map summation.
  • Applies sequence-to-count mapping for end-to-end training, eliminating the need for 2D density map supervision.
  • Leverages self-attention mechanisms in the transformer to model long-range spatial dependencies across the image.
  • Trains the model using only image-level count annotations, minimizing reliance on expensive point-level annotations.
Fig. 1 : The pipeline of the proposed CrowdFormer
Fig. 1 : The pipeline of the proposed CrowdFormer

Experimental results

Research questions

  • RQ1Can a vision transformer-based architecture achieve state-of-the-art performance in weakly-supervised crowd counting with only count-level annotations?
  • RQ2Does multi-scale feature extraction with a pyramid vision transformer improve generalization across diverse crowd scenes compared to single-scale or CNN-based methods?
  • RQ3How does the proposed feature aggregation strategy compare to existing methods in terms of performance and robustness in cross-dataset evaluations?
  • RQ4Can a weakly-supervised transformer model outperform fully supervised models in cross-dataset settings?

Key findings

  • CrowdFormer achieves state-of-the-art performance on the SHA dataset, improving MAE by 3.6% and MSE by 0.63% over the previous best weakly-supervised method.
  • On the UCF_CC_50 dataset, CrowdFormer achieves the best MAE among weakly-supervised methods, outperforming CCTrans by 6.3%.
  • In cross-dataset evaluations, CrowdFormer achieves state-of-the-art results, outperforming even several fully supervised methods, particularly when trained on challenging datasets like SHA or QNRF.
  • The model demonstrates strong generalizability, with better performance when trained on high-density or complex scenes and transferring effectively to less complex datasets.
  • CrowdFormer outperforms TransCrowd, which uses only single-scale features, highlighting the benefit of multi-scale feature fusion in transformers.
  • The method's performance is robust across diverse datasets, including those with extreme perspective distortion (e.g., UCF_CC_50), confirming its real-world deployability.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.