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

Salwa K. Al Khatib1*, Ahmed ElHagry1*, Shitong Shao2,1*, Zhiqiang Shen1 1MBZUAI 2HKUST (Guangzhou) *Equal contributors ![paper](https://img.shields.io/badge/arXiv-Paper-.svg) [![Hugging Face Datasets](https://img.shields.io/badge/%F0%9F%A4%97%20Hugging%20Face-Datasets-blue)](https://huggingface.co/datasets/VILA-Lab/OD3) [![Follow @vila_shen_lab](https://img.shields.io/twitter/url?url=https%3A%2F%2Fx.com%2Fvila_shen_lab&label=Follow%20%40vila_shen_lab)](https://x.com/vila_shen_lab)

πŸ“° 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%.

OD3 Framework

βš™οΈ 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 Hugging Face Datasets.

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}
}