Repository
OD3
π OD<sup>3</sup>: Optimization-free Dataset Distillation for Object Detection Β· License unknown Β· Maintenance unknown
- License
- Unknown
- dataset
- IPD
- MS COCO
- 0.5%
Specs
- datasetIPD
- MS COCO0.5%
- MS COCO0.5%
- MS COCO1.0%
README
π OD<sup>3</sup>: Optimization-free Dataset Distillation for Object Detection
π° News
- [2026-01-26] Paper accepted to ICLR2026π₯.
- [2025-06-13] Distilled datasets released on Hugging Face.
- [2025-06-02] Codebase released.
- [2025-06-02] ODΒ³ is released on arXiv.
π§ Abstract
Training large neural networks on large-scale datasets requires substantial computational resources, particularly for dense prediction tasks such as object detection. Although dataset distillation (DD) has been proposed to alleviate these demands by synthesizing compact datasets from larger ones, most existing work focuses solely on image classification, leaving the more complex detection setting largely unexplored. In this paper, we introduce OD<sup>3</sup>, a novel optimization-free data distillation framework specifically designed for object detection. Our approach involves two stages: first, a candidate selection process in which object instances are iteratively placed in synthesized images based on their suitable locations, and second, a candidate screening process using a pre-trained observer model to remove low-confidence objects. We perform our data synthesis framework on MS COCO and PASCAL VOC, two popular detection datasets, with compression ratios ranging from 0.25% to 5%. Compared to the prior solely existing dataset distillation method on detection and conventional core set selection methods, OD<sup>3</sup> delivers superior accuracy and establishes new state-of-the-art results, surpassing the prior best method by more than 14% on COCO mAP<sub>50</sub> at a compression ratio of 1.0%.
βοΈ Installation
The code has been tested with: Python 3.9, CUDA 11.3, PyTorch 1.12.1
Follow this official guide on how to setup the <code>openmmlab</code> environment.
π― Pre-trained Observer
Download checkpoints for FasterRCNN-R101 and RetinaNet-R101
βββ ./mmdetection/checkpoints/
βββ faster_rcnn_r101_fpn_2x_coco_bbox_mAP-0.398_20200504_210455-1d2dac9c.pth
βββ retinanet_r101_fpn_2x_coco_20200131-5560aee8.pth
ποΈ Dataset
COCO: train2017 | val2017 \
Make sure to change the <code>data_root</code> argument in the used config file, e.g. <code>mmdetection/configs/dd/data_synthesis/data_synthesis_faster-rcnn_r101_fpn_coco.py</code>, to your downloaded COCO path
π¬ Distillation
To distill the COCO dataset into a condensed version using OD<sup>3</sup>, run the following script with <code>output_dir</code> (where to save condensed coco), <code>original_dir</code> (the path of the downloaded MS COCO), <code>IPD</code> (images per dataset/compression ratio), and (optionally) <code>model</code> arguments, e.g. <code>coco-1percent/</code> <code>data/ms-coco/</code> <code>1184</code> <code>retinanet</code>.
sh scripts/data_synthesis.sh {output_dir} {original_dir} {IPD} {model (optional)}
You can also download distilled data from .
| dataset | IPD | files |
|---|---|---|
| MS COCO | 0.5% | images |
| MS COCO | 0.5% | images |
| MS COCO | 1.0% | images |
β Evaluation
To evaluate performance on a condensed dataset, run the following script with <code>training_config</code> (PKD config file e.g. <code>mmrazor/configs/distill/mmdet/pkd/pkd_fpn_faster-rcnn_r101_faster-rcnn_r50_2x_coco.py</code>), <code>num_gpus</code>, <code>data_annotation</code> (path to final_soft_labels.json), <code>data_dir</code> (root directory of output_dir), and <code>work_dir</code> (directory to save logs).
sh scripts/post_training.sh {training_config} {num_gpus} {data_annotation} {data_dir} {work_dir}
π Acknowledgement
This codebase is built on mmdetection and mmrazor.
π Citation
If you find our work useful, please cite it:
@article{alkhatib2024od3,
title={OD3: Optimization-free Dataset Distillation for Object Detection},
author={Al Khatib, Salwa K. and ElHagry, Ahmed and Shao, Shitong and Shen, Zhiqiang},
journal={arXiv preprint arXiv:2506.01942},
year={2025}
}