Datasets:
Tasks:
Object Detection
Modalities:
Image
Formats:
parquet
Languages:
English
Size:
10K - 100K
License:
File size: 4,028 Bytes
bff45c0 4509e9b bff45c0 4509e9b bff45c0 4b3f01b 55e0f33 4b3f01b 1c78314 4b3f01b 4509e9b |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 |
---
dataset_info:
features:
- name: image_id
dtype: int64
- name: image
dtype: image
- name: width
dtype: int64
- name: height
dtype: int64
- name: objects
sequence:
- name: bbox_id
dtype: int64
- name: category
dtype:
class_label:
names:
'0': plane
'1': ship
'2': storage-tank
'3': baseball-diamond
'4': tennis-court
'5': basketball-court
'6': ground-track-field
'7': harbor
'8': bridge
'9': small-vehicle
'10': large-vehicle
'11': roundabout
'12': swimming-pool
'13': helicopter
'14': soccer-ball-field
'15': container-crane
- name: bbox
sequence: int64
length: 4
- name: area
dtype: int64
splits:
- name: train
num_bytes: 5043231102.186
num_examples: 54087
- name: validation
num_bytes: 184865300
num_examples: 2000
- name: test
num_bytes: 628863995.564
num_examples: 6854
download_size: 5791640499
dataset_size: 5856960397.75
configs:
- config_name: default
data_files:
- split: train
path: data/train-*
- split: validation
path: data/validation-*
- split: test
path: data/test-*
license: mit
task_categories:
- object-detection
language:
- en
pretty_name: DOTA COCO format
---
#Β DOTA: Resized and Hugging Face-Ready Vision Dataset
This dataset is a restructured version of the DOTA (Dataset for Object Detection in Aerial Images), specifically designed to simplify object detection workflows. By resizing the original images and converting them to the COCO format, this project provides an easier way to use DOTA with popular computer vision frameworks. Additionally, the dataset is formatted for seamless integration with Hugging Face datasets, unlocking new possibilities for training and experimentation.
## π Dataset Structure
### COCO Format
The dataset follows the COCO dataset structure, making it straightforward to work with:
```plaintext
dota/
βββ annotations/
β βββ instances_train.json
β βββ instances_val.json
β βββ instances_test.json
βββ train/
βββ val/
βββ test/
```
### Hugging Face Format
The dataset is compatible with the datasets library. You can load it directly using:
```python
from datasets import load_dataset
dataset = load_dataset("HichTala/dota")
```
## πΌοΈ Sample Visualizations
Above: An example of resized images with bounding boxes in COCO format.
## π Getting Started
### Install Required Libraries
- Install datasets for Hugging Face compatibility:
```bash
pip install datasets
```
- Use any object detection framework supporting COCO format for training.
### Load the Dataset
#### Hugging Face:
```python
from datasets import load_dataset
dataset = load_dataset("HichTala/dota")
train_data = dataset["train"]
```
#### Custom Script for COCO-Compatible Frameworks:
```python
import json
from pycocotools.coco import COCO
coco = COCO("annotations/train.json")
```
see demo notebook [here](https://github.com/cocodataset/cocoapi/blob/master/PythonAPI/pycocoDemo.ipynb) for more details.
## βοΈ Preprocessing Details
- Resizing: The original large images were split into smaller patches, each resized to *512x512 pixels*.
- Annotations: Converted to COCO format for better compatibility and flexibility.
## π How to Cite
If you use this dataset, please consider citing the original DOTA dataset:
```plaintext
Copy code
@inproceedings{Xia_2018_CVPR,
author = {Gui-Song Xia and Xiang Bai and Jieqing Zheng and others},
title = {DOTA: A Large-Scale Dataset for Object Detection in Aerial Images},
booktitle = {CVPR},
year = {2018}
}
```
Additionally, you can mention this repository for the resized COCO and Hugging Face formats.
Enjoy using DOTA in coco format for your object detection experiments! π |