Papers › Semantic Generative Augmentations for Few-Shot Counting

Semantic Generative Augmentations for Few-Shot Counting

26 Oct 2023arXiv:2311.16122archive 2025-07-28

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.

PaperPDFCode

Code

perladoubinsky/SemAug officialmentioned on GitHubpytorch report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

Not run by Syntology. Nothing on this page verifies that the listed code works.

Tasks

DiversityImage ClassificationObject Countingimage-classification

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Object Counting FSC147 SemAug-CounTR MAE(test) 11.32 #7 of 19 Archive leaderboard report
Object Counting FSC147 SemAug-CounTR MAE(val) 12.31 #7 of 19 Archive leaderboard report
Object Counting FSC147 SemAug-CounTR RMSE(test) 77.50 #7 of 19 Archive leaderboard report
Object Counting FSC147 SemAug-CounTR RMSE(val) 41.65 #7 of 19 Archive leaderboard report
Object Counting FSC147 SemAug-SAFECount MAE(test) 12.74 #9 of 19 Archive leaderboard report
Object Counting FSC147 SemAug-SAFECount MAE(val) 12.59 #9 of 19 Archive leaderboard report
Object Counting FSC147 SemAug-SAFECount RMSE(test) 89.90 #9 of 19 Archive leaderboard report
Object Counting FSC147 SemAug-SAFECount RMSE(val) 44.95 #9 of 19 Archive leaderboard report

Ranks are positions in the archive's leaderboards as they stood at the 2025-07-28 snapshot. Results published since then are not among these rows, so a rank here is not a current standing.

Methods

Diffusion

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections