CounTR: Transformer-based Generalised Visual Counting
Chang Liu, Yujie Zhong, Andrew Zisserman, Weidi Xie

TL;DR
This paper introduces CounTR, a transformer-based model for generalized visual counting that can count objects across arbitrary categories using zero-shot or few-shot learning, achieving state-of-the-art results.
Contribution
The paper presents a novel transformer architecture, a two-stage training process, and a scalable data synthesis pipeline for improved generalized counting.
Findings
State-of-the-art performance on FSC-147 benchmark.
Effective zero-shot and few-shot counting capabilities.
Thorough ablation studies validating the model's components.
Abstract
In this paper, we consider the problem of generalised visual object counting, with the goal of developing a computational model for counting the number of objects from arbitrary semantic categories, using arbitrary number of "exemplars", i.e. zero-shot or few-shot counting. To this end, we make the following four contributions: (1) We introduce a novel transformer-based architecture for generalised visual object counting, termed as Counting Transformer (CounTR), which explicitly capture the similarity between image patches or with given "exemplars" with the attention mechanism;(2) We adopt a two-stage training regime, that first pre-trains the model with self-supervised learning, and followed by supervised fine-tuning;(3) We propose a simple, scalable pipeline for synthesizing training images with a large number of instances or that from different semantic categories, explicitly forcing…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsVideo Surveillance and Tracking Methods · Image Enhancement Techniques · Human Pose and Action Recognition
MethodsMulti-Head Attention · Attention Is All You Need · Linear Layer · Label Smoothing · Softmax · Layer Normalization · Dropout · Dense Connections · Adam · Position-Wise Feed-Forward Layer
