arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2403.09281cs.CVcs.AI
收藏

CLIP-EBC:通过增强分块分类实现准确计数的CLIP模型

CLIP-EBC: CLIP Can Count Accurately through Enhanced Blockwise Classification

Department of Computer Science(计算机科学系);University of Warwick(沃里克大学);School of Computing Science(计算科学学院);University of Glasgow(格拉斯哥大学)

Yiming Ma, Victor Sanchez, Tanaya Guha

AI总结:

本研究提出首个完全基于CLIP的人群计数模型CLIP-EBC,通过增强分块分类(EBC)框架解决现有方法的边界模糊问题,在NWPU-Crowd数据集上实现了最优性能,较此前最佳方法STEERER有显著提升。

摘要:

我们提出了CLIP-EBC,这是首个完全基于CLIP的准确人群密度估计模型。CLIP模型在零样本图像分类等识别任务中已展现出显著的成功,但其计数潜力因将计数这类回归问题转化为识别任务存在固有挑战而未被充分探索。本研究聚焦于从图像估计人群规模的任务,探究并增强CLIP的计数能力。现有的基于分类的人群计数框架存在显著局限性,包括将计数值量化为相邻实值区间、仅关注分类误差,这些做法导致共享区间边界附近的标签模糊且计数值预测不准确,因此直接在这些框架中应用CLIP可能会产生次优性能。为应对这些挑战,我们首先提出增强分块分类(EBC)框架,与现有方法不同,EBC采用整数值区间,有效减少了区间边界附近的模糊性;此外,它还结合了基于密度图的回归损失,以提升计数值的预测效果。在与主干网络无关的EBC框架内,我们随后引入CLIP-EBC,以充分利用CLIP的识别能力完成该任务。大量实验证明了EBC的有效性以及CLIP-EBC的竞争力:具体而言,我们的EBC框架在UCF-QNRF数据集上可将现有基于分类的方法提升最高达44.5%,而CLIP-EBC在NWPU-Crowd测试集上实现了最先进的性能,其平均绝对误差(MAE)为58.2,均方根误差(RMSE)为268.5,较此前的最佳方法STEERER分别提升了8.6%和13.3%。代码和权重可在该https URL获取。

英文摘要:

We propose CLIP-EBC, the first fully CLIP-based model for accurate crowd density estimation. While the CLIP model has demonstrated remarkable success in addressing recognition tasks such as zero-shot image classification, its potential for counting has been largely unexplored due to the inherent challenges in transforming a regression problem, such as counting, into a recognition task. In this work, we investigate and enhance CLIP's ability to count, focusing specifically on the task of estimating crowd sizes from images. Existing classification-based crowd-counting frameworks have significant limitations, including the quantization of count values into bordering real-valued bins and the sole focus on classification errors. These practices result in label ambiguity near the shared borders and inaccurate prediction of count values. Hence, directly applying CLIP within these frameworks may yield suboptimal performance. To address these challenges, we first propose the Enhanced Blockwise Classification (EBC) framework. Unlike previous methods, EBC utilizes integer-valued bins, effectively reducing ambiguity near bin boundaries. Additionally, it incorporates a regression loss based on density maps to improve the prediction of count values. Within our backbone-agnostic EBC framework, we then introduce CLIP-EBC to fully leverage CLIP's recognition capabilities for this task. Extensive experiments demonstrate the effectiveness of EBC and the competitive performance of CLIP-EBC. Specifically, our EBC framework can improve existing classification-based methods by up to 44.5% on the UCF-QNRF dataset, and CLIP-EBC achieves state-of-the-art performance on the NWPU-Crowd test set, with an MAE of 58.2 and an RMSE of 268.5, representing improvements of 8.6% and 13.3% over the previous best method, STEERER. The code and weights are available at https://github.com/Yiming-M/CLIP-EBC.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑