# MMDetection COCO ## Format specification [MMDetection](https://mmdetection.readthedocs.io/en/latest/) is a training framework for object detection and instance segmentation tasks, providing a modular and flexible architecture that supports various state-of-the-art models, datasets, and training techniques. MMDetection has gained popularity in the research community for its comprehensive features and ease of use in developing and benchmarking object detection algorithms. MMDetection specifies their COCO format [here](https://mmdetection.readthedocs.io/en/latest/user_guides/dataset_prepare.html). Most of available tasks or formats are similar to the [original COCO format](./formats/coco), while only the image directories are separated with respect to subsets. In this document, we just describe the directory structure of MMDetection COCO format as per [here](https://mmdetection.readthedocs.io/en/latest/user_guides/dataset_prepare.html). MMDetection COCO dataset directory should have the following structure: ``` └─ Dataset/ ├── / │ ├── │ ├── │ └── ... ├── / │ ├── │ ├── │ └── ... └── annotations/ ├── instances_.json └── ... ``` ### Import using CLI ``` bash datum project create datum project import --format mmdet_coco ``` ### Import using Python API ```python import datumaro as dm dataset = dm.Dataset.import_from('', 'mmdet_coco') ```