HyperAIHyperAI

Command Palette

Search for a command to run...

3 months ago

Semantic Generative Augmentations for Few-Shot Counting

Perla Doubinsky Nicolas Audebert Michel Crucianu Hervé Le Borgne

Semantic Generative Augmentations for Few-Shot Counting

Abstract

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.

Code Repositories

perladoubinsky/SemAug
Official
pytorch
Mentioned in GitHub

Benchmarks

BenchmarkMethodologyMetrics
object-counting-on-fsc147SemAug-SAFECount
MAE(test): 12.74
MAE(val): 12.59
RMSE(test): 89.90
RMSE(val): 44.95
object-counting-on-fsc147SemAug-CounTR
MAE(test): 11.32
MAE(val): 12.31
RMSE(test): 77.50
RMSE(val): 41.65

Build AI with AI

From idea to launch — accelerate your AI development with free AI co-coding, out-of-the-box environment and best price of GPUs.

AI Co-coding
Ready-to-use GPUs
Best Pricing
Get Started

Hyper Newsletters

Subscribe to our latest updates
We will deliver the latest updates of the week to your inbox at nine o'clock every Monday morning
Powered by MailChimp