arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2502.10677cs.CV
收藏

FocalCount:面向类别无关计数中的类别-数量不平衡问题

FocalCount: Towards Class-Count Imbalance in Class-Agnostic Counting

Wuhan University of Technology(武汉理工大学);Singapore Management University(新加坡管理大学);Wuhan University(武汉大学)

Huilin Zhu, Jingling Yuan, Zhengwei Yang, Yu Guo, Xian Zhong, Shengfeng He

AI总结:

针对类别无关计数中类别-数量不平衡导致的计数偏差,本文提出FocalCount及Focal-MSE损失,利用类别数量估计加权并强化稀有类别误差梯度,在三个数据集的少样本与零样本设置中取得更优性能。

摘要:

在类别无关的目标计数中,目标是在不区分具体类别的情况下,估计图像中目标实例的总数。现有方法通常在不考虑类别特定输出的情况下预测该数量,导致在需要此类输出时出现不准确。这些不准确源于两个关键挑战:1)数据集中普遍存在单类别图像,这使模型将特定类别泛化为所有目标的代表;2)训练期间使用均方误差损失,其施加均匀惩罚。这种均匀惩罚忽视了较不常见类别中的误差,尤其是在这些误差对总体损失贡献很小时。为解决这些问题,我们提出 FocalCount,这是一种利用多样特征属性来估计图像中目标类别数量的新方法。该估计用作校正类别-数量不平衡的加权因子。此外,我们提出 Focal-MSE,这是一种融合二元交叉熵以产生更强误差梯度的新损失函数,可增强模型对代表性不足类别中误差的敏感性。我们的方法显著提高了模型区分特定类别与一般计数的能力,在三个目标计数数据集上的少样本和零样本场景中均展现出优越性能和可扩展性。代码将很快发布。

英文摘要:

In class-agnostic object counting, the goal is to estimate the total number of object instances in an image without distinguishing between specific categories. Existing methods often predict this count without considering class-specific outputs, leading to inaccuracies when such outputs are required. These inaccuracies stem from two key challenges: 1) the prevalence of single-category images in datasets, which leads models to generalize specific categories as representative of all objects, and 2) the use of mean squared error loss during training, which applies uniform penalization. This uniform penalty disregards errors in less frequent categories, particularly when these errors contribute minimally to the overall loss. To address these issues, we propose {FocalCount}, a novel approach that leverages diverse feature attributes to estimate the number of object categories in an image. This estimate serves as a weighted factor to correct class-count imbalances. Additionally, we introduce {Focal-MSE}, a new loss function that integrates binary cross-entropy to generate stronger error gradients, enhancing the model's sensitivity to errors in underrepresented categories. Our approach significantly improves the model's ability to distinguish between specific classes and general counts, demonstrating superior performance and scalability in both few-shot and zero-shot scenarios across three object counting datasets. The code will be released soon.

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

↑