Lune

CVPR2024Top-tier venue

Point, Segment and Count: A Generalized Framework for Object Counting

Zhizhong Huang, Mingliang Dai, Yi Zhang, Junping Zhang, Hongming Shan

Abstract

Class-agnostic object counting aims to count all objects in an image with respect to example boxes or class names, a.k.a few-shot and zero-shot counting. In this paper, we propose a generalized framework for both few-shot and zeroshot object counting based on detection. Our framework combines the superior advantages of two foundation models without compromising their zero-shot capability: (i) SAM to segment all possible objects as mask proposals, and (ii) CLIP to classify proposals to obtain accurate object counts. However, this strategy meets the obstacles of efficiency overhead and the small crowded objects that cannot be localized and distinguished. To address these issues, our framework, termed PseCo, follows three steps: point, segment, and count. Specifically, we first propose a class-agnostic object localization to provide accurate but least point prompts for SAM, which consequently not only reduces computation costs but also avoids missing small objects. Furthermore, we propose a generalized object classification that leverages CLIP image/text embeddings as the classifier, following a hierarchical knowledge distillation to obtain discriminative classifications among hierarchical mask proposals. Extensive experimental results on FSC-147, COCO, and LVIS demonstrate that PseCo achieves state-of-the-art performance in both few-shot/zero-shot object counting/detection.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

10 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • RegionCLIP: Region-based Language-Image Pretraining cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • RegionCLIP: Region-based Language-Image Pretraining cites Open-vocabulary Object Detection via Vision and Language Knowledge Distillation
  • RegionCLIP: Region-based Language-Image Pretraining cites Learning Transferable Visual Models From Natural Language Supervision
  • Boosting Quantitive and Spatial Awareness for Zero-Shot Object Counting cites A Novel Unified Architecture for Low-Shot Counting by Detection and Segmentation
  • Boosting Quantitive and Spatial Awareness for Zero-Shot Object Counting cites Learning Transferable Visual Models From Natural Language Supervision
  • Open-vocabulary Object Detection via Vision and Language Knowledge Distillation cites Learning Transferable Visual Models From Natural Language Supervision
  • CountGD++: Generalized Prompting for Open-World Counting cites A Novel Unified Architecture for Low-Shot Counting by Detection and Segmentation
  • CountGD++: Generalized Prompting for Open-World Counting cites Learning Transferable Visual Models From Natural Language Supervision
  • CountGD++: Generalized Prompting for Open-World Counting cites Open-World Object Counting in Videos
  • Learning Transferable Visual Models From Natural Language Supervision cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • Open-World Object Counting in Videos cites A Novel Unified Architecture for Low-Shot Counting by Detection and Segmentation
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers10

  1. A Novel Unified Architecture for Low-Shot Counting by Detection and SegmentationJer Pelhan, Alan Lukezic, Vitjan Zavrtanik, Matej KristanNeurIPS 2024 · 29 citations
  2. CountGD++: Generalized Prompting for Open-World CountingNiki Amini-Naieni, Andrew ZissermanCVPR 2026 · 14 citations
  3. Boosting Quantitive and Spatial Awareness for Zero-Shot Object CountingDa Zhang, Bingyu Li, Feiyu Wang, Zhiyuan Zhao et al.CVPR 2026 · 6 citations
  4. Fully Exploiting Every Real Sample: SuperPixel Sample Gradient Model StealingYunlong Zhao, Xiaoheng Deng, Yijing Liu, Xinjun Pei et al.CVPR 2024 · 6 citations
  5. Open-World Object Counting in VideosNiki Amini-Naieni, Andrew ZissermanAAAI 2026 · 6 citations

Builds on16

  1. Learning Transferable Visual Models From Natural Language SupervisionAlec Radford, Jong Wook Kim, Chris Hallacy, Aditya Ramesh et al.ICML 2021 · 47,906 citations
  2. An Image is Worth 16x16 Words: Transformers for Image Recognition at ScaleAlexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn et al.ICLR 2021 · 21,477 citations
  3. Open-vocabulary Object Detection via Vision and Language Knowledge DistillationXiuye Gu, Tsung-Yi Lin, Weicheng Kuo, Yin CuiICLR 2022 · 1,274 citations
  4. Frustratingly Simple Few-Shot Object DetectionXin Wang, Thomas E. Huang, Joseph Gonzalez, Trevor Darrell et al.ICML 2020 · 723 citations
  5. RegionCLIP: Region-based Language-Image PretrainingYiwu Zhong, Jianwei Yang, Pengchuan Zhang, Chunyuan Li et al.CVPR 2022 · 481 citations

Related papers

  1. Zero-Shot Out-of-Distribution Detection Based on the Pre-trained Model CLIPSepideh Esmaeilpour, Bing Liu, Eric Robertson, Lei ShuAAAI 2022 · 219 citations
  2. CLIP4HOI: Towards Adapting CLIP for Practical Zero-Shot HOI DetectionYunyao Mao, Jiajun Deng, Wengang Zhou, Li Li et al.NeurIPS 2023 · 62 citations
  3. ZegCLIP: Towards Adapting CLIP for Zero-shot Semantic SegmentationZiqin Zhou, Yinjie Lei, Bowen Zhang, Lingqiao Liu et al.CVPR 2023
  4. Probabilistic Prototype Calibration of Vision-Language Models for Generalized Few-Shot Semantic SegmentationJie Liu, Jiayi Shen, Pan Zhou, Jan-Jakob Sonke et al.ICCV 2025 · 4 citations
  5. Text Augmented Correlation Transformer For Few-shot Classification & SegmentationSrinivasa Rao Nandam, Sara Atito, Zhenhua Feng, Josef Kittler et al.CVPR 2025
Dusk over the sea between two cliffs drawn in fine vertical lines