Semantic Generative Augmentations for Few-Shot Counting

26 Oct 2023  ·  Perla Doubinsky, Nicolas Audebert, Michel Crucianu, Hervé Le Borgne ·

With the availability of powerful text-to-image diffusion models, recent works have explored the use of synthetic data to improve image classification performances. These works show that it can effectively augment or even replace real data. In this work, we investigate how synthetic data can benefit few-shot class-agnostic counting. This requires to generate images that correspond to a given input number of objects. However, text-to-image models struggle to grasp the notion of count. We propose to rely on a double conditioning of Stable Diffusion with both a prompt and a density map in order to augment a training dataset for few-shot counting. Due to the small dataset size, the fine-tuned model tends to generate images close to the training images. We propose to enhance the diversity of synthesized images by exchanging captions between images thus creating unseen configurations of object types and spatial layout. Our experiments show that our diversified generation strategy significantly improves the counting accuracy of two recent and performing few-shot counting models on FSC147 and CARPK.

PDF Abstract

Datasets


Results from the Paper


Ranked #4 on Object Counting on FSC147 (using extra training data)

     Get a GitHub badge
Task Dataset Model Metric Name Metric Value Global Rank Uses Extra
Training Data
Benchmark
Object Counting FSC147 SemAug-CounTR MAE(val) 12.31 # 4
RMSE(val) 41.65 # 4
MAE(test) 11.32 # 4
RMSE(test) 77.50 # 4
Object Counting FSC147 SemAug-SAFECount MAE(val) 12.59 # 5
RMSE(val) 44.95 # 5
MAE(test) 12.74 # 6
RMSE(test) 89.90 # 6

Methods