Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

Few-shot Object Counting with Similarity-Aware Feature Enhancement

About

This work studies the problem of few-shot object counting, which counts the number of exemplar objects (i.e., described by one or several support images) occurring in the query image. The major challenge lies in that the target objects can be densely packed in the query image, making it hard to recognize every single one. To tackle the obstacle, we propose a novel learning block, equipped with a similarity comparison module and a feature enhancement module. Concretely, given a support image and a query image, we first derive a score map by comparing their projected features at every spatial position. The score maps regarding all support images are collected together and normalized across both the exemplar dimension and the spatial dimensions, producing a reliable similarity map. We then enhance the query feature with the support features by employing the developed point-wise similarities as the weighting coefficients. Such a design encourages the model to inspect the query image by focusing more on the regions akin to the support images, leading to much clearer boundaries between different objects. Extensive experiments on various benchmarks and training setups suggest that we surpass the state-of-the-art methods by a sufficiently large margin. For instance, on a recent large-scale FSC-147 dataset, we surpass the state-of-the-art method by improving the mean absolute error from 22.08 to 14.32 (35%$\uparrow$). Code has been released in https://github.com/zhiyuanyou/SAFECount.

Zhiyuan You, Kai Yang, Wenhan Luo, Xin Lu, Lei Cui, Xinyi Le• 2022

Related benchmarks

TaskDatasetResultRank
Object CountingFSC-147 (test)
MAE14.32
297
Object CountingFSC-147 (val)
MAE15.28
211
Crowd CountingShanghaiTech Part B
MAE9.98
160
Crowd CountingShanghaiTech Part A
MAE73.7
138
Car Object CountingCARPK (test)
MAE5.33
116
Crowd CountingWorldExpo'10 (test)
Scene 1 Error3.2
80
Object CountingFSC-147 1.0 (val)
MAE15.28
50
Object CountingFSC-147 1.0 (test)
MAE14.32
50
CountingCARPK
MAE5.33
41
Car CountingPUCPR+ (test)
MAE2.42
31
Showing 10 of 20 rows

Other info

Follow for update