Home

Awesome

Few-Shot-Object-Detection-Dataset

NEWS!

Detectron2 based FSOD is released in a data-limited task toolbox FewX! It can reach 12.0 AP on MS COCO (full-way 10-shot on voc subset).

Updates:

Introduction:

Few-Shot Object Detection Dataset (FSOD) is a high-diverse dataset specifically designed for few-shot object detection and intrinsically designed to evaluate thegenerality of a model on novel categories.

To build this dataset, we first summarize a label system from ImageNet and OpenImage. By merging the leaf labels in their original label trees, group those of same semantics, such as the ice bear and polar bear, to one category, and remove some semantics that does not belong to any leaf categories. Then, we remove the images with bad labeling quality and those with boxes of improper size. We remove boxes smaller than 0.05% of image size which is usually in bad visual quality and unsuitable to serve as support examples.

We follow the few-shot learning principle to split our data into the training set and test set whose categories has no overlap. We construct the training set with categories in MS COCO Dataset and ImageNet Dataset in case researchers need a pretraining stage. We then split the test set which contains 200 categories by choosing those with the largest distance with existing training categories, where the distance calculates the shortest path that connects the senses of two phrase in the is-a taxonomy. The remaining categories are merged into the training set that in total contains 800 categories. In all, we construct a dataset of 1000 categories with very clear category split for training and testing, where 531 categories come from ImageNet Dataset and 469 from Open Image Dataset.

Download FSOD:

Download the images and annotations from Google Driver or Baidu Driver (the passcode for Baidu Driver is: wnj8).

FSOD Dataset Format and Usage:

The FSOD dataset is in MS COCO format (under debug), so place the FSOD dataset as the COCO dataset. And you can use the FSOD dataset like COCO dataset.

Put the FSOD dataset as the following structure:

YOUR_PATH
    └── your code dir
          ├── your code
          ├── ...
          │ 
          └── datasets
                ├──── fsod
                |       ├── annotations
                │       │       ├── fsod_train.json
                │       │       └── fsod_test.json
                │       └── images
                │             ├── part_1
                │             └── part_2
                │ 
                ├──── coco
                |       ├── annotations
                │       │       ├── instances_train2017.json
                │       │       └── instances_val2017.json
                │       └── images
                │ 
                └── other datasets

Dataset Summary:

TrainTest
No. Class800200
No. Image5235014152
No. Box14748935102
Avg No. Box / Img2.822.48
Min No. Img / Cls2230
Max No. Img / Cls208199
Avg No. Img / Cls75.6574.31
Box Size[6, 6828][13, 4605]
Box Area Ratio[0.0009, 1][0.0009, 1]
Box W/H Ratio[0.0216, 89][0.0199, 51.5]

Contact:

This dataset is maintained by Qi Fan (HKUST, fanqithu@gmail.com), Wei Zhuo (Tencent, wei.zhuowx@gmail.com) and Yu-Wing Tai (Tencent, yuwingtai@tencent.com)

Citation

If you use this dataset in your research, please cite this paper.

@inproceedings{fan2020fsod,
  title={Few-Shot Object Detection with Attention-RPN and Multi-Relation Detector},
  author={Fan, Qi and Zhuo, Wei and Tang, Chi-Keung and Tai, Yu-Wing},
  booktitle={CVPR},
  year={2020}
}