Proceedings

Learning Spatial Similarity Distribution for Few-shot Object Counting

Download BibTeX Cite

Proceedings of the Thirty-Third International Joint Conference on Artificial Intelligence. Main Track. Pages 1507-1515.

https://doi.org/10.24963/ijcai.2024/167

Abstract

Few-shot object counting aims to count the number of objects in a query image that belong to the same class as the given exemplar images. Existing methods compute the similarity between the query image and exemplars in the 2D spatial domain and perform regression to obtain the counting number. However, these methods overlook the rich information about the spatial distribution of similarity on the exemplar images, leading to significant impact on matching accuracy. To address this issue, we propose a network learning Spatial Similarity Distribution (SSD) for few-shot object counting, which preserves the spatial structure of exemplar features and calculates a 4D similarity pyramid point-to-point between the query features and exemplar features, capturing the complete distribution information for each point in the 4D similarity space. We propose a Similarity Learning Module (SLM) which applies the efficient center-pivot 4D convolutions on the similarity pyramid to map different similarity distributions to distinct predicted density values, thereby obtaining accurate count. Furthermore, we also introduce a Feature Cross Enhancement (FCE) module that enhances query and exemplar features mutually to improve the accuracy of feature matching. Our approach outperforms state-of-the-art methods on multiple datasets, including FSC-147 and CARPK. Code is available at https://github.com/CBalance/SSD.

  1. [Abousamra et al., 2021] Shahira Abousamra, Minh Hoai, Dimitris Samaras, and Chao Chen. Localization in the crowd with topological constraints. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 35, pages 872-881, 2021.
  2. [Arteta et al., 2016] Carlos Arteta, Victor Lempitsky, and Andrew Zisserman. Counting in the wild. In Proceedings of the European Conference on Computer Vision, pages 483-498, 2016.
  3. [Cheng et al., 2022] Zhi-Qi Cheng, Qi Dai, Hong Li, Jingkuan Song, Xiao Wu, and Alexander G Hauptmann. Rethinking spatial invariance of convolutional networks for object counting. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 19638-19648, 2022.
  4. [Du et al., 2023] Zhipeng Du, Jiankang Deng, and Miaojing Shi. Domain-general crowd counting in unseen scenarios. In Proceedings of the AAAI Conference on Artificial Intel- ligence, volume 37, pages 561-570, 2023.
  5. [Finn et al., 2017] Chelsea Finn, Pieter Abbeel, and Sergey Levine. Model-agnostic meta-learning for fast adapta- tion of deep networks. In Proceedings of the Interna- tional Conference on Machine Learning, pages 1126- 1135, 2017.
  6. [He et al., 2016] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recog- nition. In 2016 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 770-778, 2016.
  7. [He et al., 2017] Kaiming He, Georgia Gkioxari, Piotr Dol- lár, and Ross Girshick. Mask r-cnn. In 2017 IEEE Inter- national Conference on Computer Vision (ICCV), pages 2980-2988, 2017.
  8. [Hsieh et al., 2017] Meng-Ru Hsieh, Yen-Liang Lin, and Winston H Hsu. Drone-based object counting by spatially regularized regional proposal network. In Proceedings of the IEEE/CVF International Conference on Computer Vi- sion, pages 4145-4153, 2017.
  9. [Liang et al., 2023] Dingkang Liang, Jiahao Xie, Zhikang Zou, Xiaoqing Ye, Wei Xu, and Xiang Bai. Crowdclip: Unsupervised crowd counting via vision-language model. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 2893-2903, 2023.
  10. [Lin and Chan, 2023] Wei Lin and Antoni B Chan. Opti- mal transport minimization: Crowd localization on den- sity maps for semi-supervised counting. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pat- tern Recognition, pages 21663-21673, 2023.
  11. [Lin et al., 2021] Hui Lin, Xiaopeng Hong, and Yabin Wang. Object counting: You only need to look at one. arXiv preprint arXiv:2112.05993, 2021.
  12. [Lin et al., 2022] Wei Lin, Kunlin Yang, Xinzhu Ma, Junyu Gao, Lingbo Liu, Shinan Liu, Jun Hou, Shuai Yi, and Antoni Chan. Scale-prior deformable convolution for exemplar-guided class-agnostic counting. In Proceedings of the British Machine Vision Conference, 2022.
  13. [Liu et al., 2022] Chang Liu, Yujie Zhong, Andrew Zisser- man, and Weidi Xie. Countr: Transformer-based gener- alised visual counting. In Proceedings of the British Ma- chine Vision Conference, 2022.
  14. [Loshchilov and Hutter, 2017] Ilya Loshchilov and Frank Hutter. Decoupled weight decay regularization. arXiv preprint arXiv:1711.05101, 2017.
  15. [Lu et al., 2019] Erika Lu, Weidi Xie, and Andrew Zisser- man. Class-agnostic counting. In Proceedings of the Asian Conference on Computer Vision, pages 669-684, 2019.
  16. [Ma et al., 2019] Zhiheng Ma, Xing Wei, Xiaopeng Hong, and Yihong Gong. Bayesian loss for crowd count es- timation with point supervision. In Proceedings of the IEEE/CVF international conference on computer vision, pages 6142-6151, 2019.
  17. [Min et al., 2021] Juhong Min, Dahyun Kang, and Minsu Cho. Hypercorrelation squeeze for few-shot segmentation. In Proceedings of the IEEE/CVF international conference on computer vision, pages 6941-6952, 2021.
  18. [Ranjan et al., 2021] Viresh Ranjan, Udbhav Sharma, Thu Nguyen, and Minh Hoai. Learning to count everything. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 3394-3403, 2021.
  19. [Rocco et al., 2018] Ignacio Rocco, Mircea Cimpoi, Relja Arandjelović, Akihiko Torii, Tomas Pajdla, and Josef Sivic. Neighbourhood consensus networks. Advances in neural information processing systems, 31, 2018.
  20. [Shi et al., 2022] Min Shi, Hao Lu, Chen Feng, Chengxin Liu, and Zhiguo Cao. Represent, compare, and learn: A similarity-aware framework for class-agnostic counting. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 9529-9538, 2022.
  21. [Shu et al., 2022] Weibo Shu, Jia Wan, Kay Chen Tan, Sam Kwong, and Antoni B Chan. Crowd counting in the fre- quency domain. In Proceedings of the IEEE/CVF confer- ence on computer vision and pattern recognition, pages 19618-19627, 2022.
  22. [Stewart et al., 2016] Russell Stewart, Mykhaylo Andriluka, and Andrew Y Ng. End-to-end people detection in crowded scenes. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 2325- 2333, 2016.
  23. [Ðukić et al., 2023] Nikola Ðukić, Alan Lukežič, Vitjan Za- vrtanik, and Matej Kristan. A low-shot object counting network with iterative prototype adaptation. In Proceed- ings of the IEEE/CVF International Conference on Com- puter Vision, pages 18872-18881, 2023.
  24. [Wan et al., 2021] Jia Wan, Ziquan Liu, and Antoni B Chan. A generalized loss function for crowd counting and local- ization. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 1974- 1983, 2021.
  25. [Wang et al., 2020] Qi Wang, Junyu Gao, Wei Lin, and Xue- long Li. Nwpu-crowd: A large-scale benchmark for crowd counting and localization. IEEE Transactions on Pat- tern Analysis and Machine Intelligence, 43(6):2141-2149, 2020.
  26. [Wu and He, 2018] Yuxin Wu and Kaiming He. Group nor- malization. In Proceedings of the European conference on computer vision (ECCV), pages 3-19, 2018.
  27. [Yang and Ramanan, 2019] Gengshan Yang and Deva Ra- manan. Volumetric correspondence networks for optical flow. Advances in neural information processing systems, 32, 2019.
  28. [Yang et al., 2021] Shuo-Diao Yang, Hung-Ting Su, Win- ston H Hsu, and Wen-Chin Chen. Class-agnostic few-shot object counting. In Proceedings of the IEEE/CVF Win- ter Conference on Applications of Computer Vision, pages 870-878, 2021.
  29. [You et al., 2023] Zhiyuan You, Kai Yang, Wenhan Luo, Xin Lu, Lei Cui, and Xinyi Le. Few-shot object counting with similarity-aware feature enhancement. In Proceedings of the IEEE/CVF Winter Conference on Applications of Com- puter Vision, pages 6315-6324, 2023.

References were extracted automatically from the PDF and may contain errors.

Welcome Future Conferences AI Journal Division IJCAI Proceedings About IJCAI IJCAI Awards