Home

Awesome

COCO minitrain

COCO minitrain is a curated mini training set (25K images ≈ 20% of train2017) for COCO. It is useful for hyperparameter tuning and reducing the cost of ablation experiments. minitrain's object instance statistics match those of train2017 (see the stats page). val2017 performance of a model trained on minitrain is strongly positively correlated with the performance of the same model trained on the full set, train2017 (see the Performance Correlation section below).

Reference

We introduced COCO minitrain in our ECCV'2020 paper. Please cite it, if you use COCO minitrain in your work:

N. Samet, S. Hicsonmez, E. Akbas, "HoughNet: Integrating near and long-range evidence for bottom-up object detection", ECCV 2020. arXiv 2007.02355.

Bibtex entry

@inproceedings{HoughNet, 
  author = {Nermin Samet and Samet Hicsonmez and Emre Akbas},
  title = {HoughNet: Integrating near and long-range evidence for bottom-up object detection},   
  booktitle = {European Conference on Computer Vision (ECCV)}, 
  year = {2020}, 
}

What's New

Feb 10, 2023

More information

COCO minitrain is a subset of the COCO train2017 dataset, and contains 25K images (about 20% of the train2017 set) and around 184K annotations across 80 object categories. We randomly sampled these images from the full set while preserving the following three quantities as much as possible:

More information on minitrain statistics could be found in STATS.md.

Download

Object Detection & Segmentation

We share COCO style JSON file, and Pascal VOC style CSV file.

Json

CSV

Class Labels

Download the whole 25k dataset directly.

coco_minitrain_25k.zip [Huggingface] (maintained by @bryanbocao)

coco_minitrain_25k.zip [Kaggle] (maintained by @trungit)

Keypoint Detection

We share COCO style JSON file.

Json

Usage

If you want to sample according to your own needs (e.g. different number of images), run src/sample_coco.py with updated parameters.

Below script runs minicoco sampling to curated 25000 images and saves annotations (both bbox and segmentation) to instances_train2017_minicoco.json file.

cd src
python sample_coco.py --coco_path "path_to_your_coco_dataset" --save_file_name "instances_train2017_minicoco" --save_format "json" --sample_image_count 25000 --debug [--sample_kp]

Performance correlation of train2017 and minitrain

Object Detection Task

Object Detection performances. Models are trained on minitrain and evaluated on val2017:

MethodBackboneScaleAPAP_50AP_75AP_SAP_MAP_L
Faster R-CNNResNet-50 w FPN80027.748.828.414.729.836.4
Mask R-CNNResNet-50 w FPN80028.549.529.414.730.737.6
RetinaNetResNet-50 w FPN80025.743.126.812.128.634.2
CornerNetHourglass-10451128.441.829.511.329.639.2
ExtremeNetHourglass-10451127.339.428.912.529.638.0

Object Detector performances trained on minitrain vs train2017. Models are evaluated on val2017.

MethodBackboneScaleminitrain APminitrain AP_50minitrain AP_75train2017 APtrain2017 AP_50train2017 AP_75
Faster R-CNNResNet-50 w FPN80027.748.828.436.758.439.6
Mask R-CNNResNet-50 w FPN80028.549.529.437.759.240.9
RetinaNetResNet-50 w FPN80025.743.126.835.754.738.5
CornerNetHourglass-10451128.441.829.538.453.840.9
ExtremeNetHourglass-10451127.339.428.940.355.143.7
HoughNetResNet-10151223.440.123.634.353.636.6

Below figure compares object detection results on train2017 and minitrain. This figure also shows the positive correlation between train2017 and minitrain results. The Pearson correlation coefficients are 0.74 and 0.92 for COCO evaluation metrics AP and AP50 respectively. This figure is based on the object detection result table above. BaseModel corresponds HoughNet model with ResNet-101 backbone.

<img src="/figures/pearson.png" width="500">

Keypoint Detection Task

Keypoint Detection model performances trained on minitrain vs train2017. Models are evaluated on val2017.

Methodminitrain APminitrain AP_50minitrain AP_75train2017 APtrain2017 AP_50train2017 AP_75
VitPOSE70.588.778.275.890.783.1
DEKR60.082.365.868.086.874.5
HRNET56.980.361.765.486.372.0
SimpleBaseline2D66.687.674.371.789.879.3

Below figure compares keypoint detection results on train2017 and minitrain. This figure also shows the positive correlation between train2017 and minitrain results. The Pearson correlation coefficients are 0.99 and 0.99 for COCO evaluation metrics AP and AP50 respectively. This figure is based on the keypoint detection result table above.

<img src="/figures/pearson_kp.png" width="500">