Saved in:
Bibliographic Details
Main Authors: O'Reilly, Villanelle, Cox, Jonathan, Leontidis, Georgios, Hanheide, Marc, Bosilj, Petra, Brown, James M.
Format: Preprint
Published: 2025
Subjects:
Online Access:https://arxiv.org/abs/2510.02213
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866917409823129600
author O'Reilly, Villanelle
Cox, Jonathan
Leontidis, Georgios
Hanheide, Marc
Bosilj, Petra
Brown, James M.
author_facet O'Reilly, Villanelle
Cox, Jonathan
Leontidis, Georgios
Hanheide, Marc
Bosilj, Petra
Brown, James M.
contents Density map estimation enables accurate object counting in heavily occluded, and densely packed scenes where detection-based counting fails. In multi-class density estimation, class awareness can be introduced by modelling classes non-exclusively, better reflecting crowded and visually ambiguous contexts. However, existing multi-class density estimators often degrade in less-dense scenes, while state-of-the-art detectors still struggle in the most congested settings. To bridge this gap, we propose the first vision-transformer-based approach to multi-class density estimation. Our model combines a Twins-SVT pyramid vision transformer backbone with a multiscale CNN decoder that leverages hierarchical features for robust counting across a wide range of densities. Further to that, the method adds an auxiliary segmentation task with the Category Focus Module to suppress inter-category interference at training time. The module improves the density estimation head without the need for constraining assumptions added by the application of the auxiliary task at inference time, as required in previous methods. Training and evaluation on the VisDrone and iSAID benchmarks demonstrates a leap in performance versus the previous state-of-the-art multi-class density estimation methods, attaining a 33%, 43%, and 64% reduction to MAE in testing evaluation. The method outperforms YOLO11 in less busy scenes, exceeding it by an order of magnitude in the most crowded testing samples. Code, and trained weights available at https://github.com/LCAS/gnr_mcdest.
format Preprint
id arxiv_https___arxiv_org_abs_2510_02213
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Getting the Numbers Right$\unicode{x2014}$Modelling Multi-Class Object Counting in Dense and Varied Scenes
O'Reilly, Villanelle
Cox, Jonathan
Leontidis, Georgios
Hanheide, Marc
Bosilj, Petra
Brown, James M.
Computer Vision and Pattern Recognition
Density map estimation enables accurate object counting in heavily occluded, and densely packed scenes where detection-based counting fails. In multi-class density estimation, class awareness can be introduced by modelling classes non-exclusively, better reflecting crowded and visually ambiguous contexts. However, existing multi-class density estimators often degrade in less-dense scenes, while state-of-the-art detectors still struggle in the most congested settings. To bridge this gap, we propose the first vision-transformer-based approach to multi-class density estimation. Our model combines a Twins-SVT pyramid vision transformer backbone with a multiscale CNN decoder that leverages hierarchical features for robust counting across a wide range of densities. Further to that, the method adds an auxiliary segmentation task with the Category Focus Module to suppress inter-category interference at training time. The module improves the density estimation head without the need for constraining assumptions added by the application of the auxiliary task at inference time, as required in previous methods. Training and evaluation on the VisDrone and iSAID benchmarks demonstrates a leap in performance versus the previous state-of-the-art multi-class density estimation methods, attaining a 33%, 43%, and 64% reduction to MAE in testing evaluation. The method outperforms YOLO11 in less busy scenes, exceeding it by an order of magnitude in the most crowded testing samples. Code, and trained weights available at https://github.com/LCAS/gnr_mcdest.
title Getting the Numbers Right$\unicode{x2014}$Modelling Multi-Class Object Counting in Dense and Varied Scenes
topic Computer Vision and Pattern Recognition
url https://arxiv.org/abs/2510.02213