Open-world Text-specified Object Counting
About
Our objective is open-world object counting in images, where the target object class is specified by a text description. To this end, we propose CounTX, a class-agnostic, single-stage model using a transformer decoder counting head on top of pre-trained joint text-image representations. CounTX is able to count the number of instances of any class given only an image and a text description of the target object class, and can be trained end-to-end. In addition to this model, we make the following contributions: (i) we compare the performance of CounTX to prior work on open-world object counting, and show that our approach exceeds the state of the art on all measures on the FSC-147 benchmark for methods that use text to specify the task; (ii) we present and release FSC-147-D, an enhanced version of FSC-147 with text descriptions, so that object classes can be described with more detailed language than their simple class names. FSC-147-D and the code are available at https://www.robots.ox.ac.uk/~vgg/research/countx.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Object Counting | FSC-147 (test) | MAE15.73 | 322 | |
| Crowd Counting | ShanghaiTech Part A (test) | MAE219.8 | 271 | |
| Object Counting | FSC-147 (val) | MAE17.1 | 240 | |
| Counting | CARPK | MAE8.13 | 52 | |
| Object Counting | FSC-147 (Average) | MAE17.23 | 19 | |
| Object Counting | FSC-147 original (test) | MAE15.69 | 11 | |
| Amodal object counting | CARPK-OCC (test) | MAE12.58 | 6 | |
| Amodal object counting | FSC-147 OCC (val) | MAE24.81 | 6 | |
| Amodal object counting | FSC-147 OCC (test) | MAE23.04 | 6 |