HichTala commited on
Commit
e46d2ee
·
verified ·
1 Parent(s): 1777cc6

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +101 -4
README.md CHANGED
@@ -44,16 +44,16 @@ dataset_info:
44
  dtype: int64
45
  splits:
46
  - name: train
47
- num_bytes: 5902685454.0
48
  num_examples: 18000
49
  - name: test
50
- num_bytes: 1150035824.0
51
  num_examples: 3463
52
  - name: validation
53
- num_bytes: 645393741.0
54
  num_examples: 2000
55
  download_size: 7626168863
56
- dataset_size: 7698115019.0
57
  configs:
58
  - config_name: default
59
  data_files:
@@ -63,4 +63,101 @@ configs:
63
  path: data/test-*
64
  - split: validation
65
  path: data/validation-*
 
 
 
 
 
66
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
44
  dtype: int64
45
  splits:
46
  - name: train
47
+ num_bytes: 5902685454
48
  num_examples: 18000
49
  - name: test
50
+ num_bytes: 1150035824
51
  num_examples: 3463
52
  - name: validation
53
+ num_bytes: 645393741
54
  num_examples: 2000
55
  download_size: 7626168863
56
+ dataset_size: 7698115019
57
  configs:
58
  - config_name: default
59
  data_files:
 
63
  path: data/test-*
64
  - split: validation
65
  path: data/validation-*
66
+ task_categories:
67
+ - object-detection
68
+ language:
69
+ - en
70
+ pretty_name: DIOR
71
  ---
72
+ # DIOR Hugging Face-Ready Vision Dataset
73
+
74
+ This dataset is a restructured version of the DIOR (Object Detection in Optical Remote Sensing Images), specifically designed to simplify object detection workflows. By converting them to the COCO format, this project provides an easier way to use DIOR with popular computer vision frameworks. Additionally, the dataset is formatted for seamless integration with Hugging Face datasets, unlocking new possibilities for training and experimentation.
75
+
76
+ ## 📂 Dataset Structure
77
+ ### COCO Format
78
+ The dataset follows the COCO dataset structure, making it straightforward to work with:
79
+
80
+ ```plaintext
81
+ dior/
82
+ ├── annotations/
83
+ │ ├── instances_train.json
84
+ │ ├── instances_val.json
85
+ │ └── instances_test.json
86
+ ├── train/
87
+ ├── val/
88
+ ├── test/
89
+ ```
90
+ ### Hugging Face Format
91
+ The dataset is compatible with the datasets library. You can load it directly using:
92
+
93
+ ```python
94
+ from datasets import load_dataset
95
+
96
+ dataset = load_dataset("HichTala/dior")
97
+ ```
98
+
99
+ ## 🖼️ Sample Visualizations
100
+
101
+ Above: An example of resized images with bounding boxes in COCO format.
102
+
103
+ ## 🚀 Getting Started
104
+ ### Install Required Libraries
105
+
106
+ - Install datasets for Hugging Face compatibility:
107
+
108
+ ```bash
109
+ pip install datasets
110
+ ```
111
+ - Use any object detection framework supporting COCO format for training.
112
+
113
+ ### Load the Dataset
114
+ #### Hugging Face:
115
+
116
+ ```python
117
+ from datasets import load_dataset
118
+
119
+ dataset = load_dataset("HichTala/dior")
120
+ train_data = dataset["train"]
121
+ ```
122
+
123
+ #### Custom Script for COCO-Compatible Frameworks:
124
+ ```python
125
+ import json
126
+ from pycocotools.coco import COCO
127
+
128
+ coco = COCO("annotations/train.json")
129
+ ```
130
+
131
+ see demo notebook [here](https://github.com/cocodataset/cocoapi/blob/master/PythonAPI/pycocoDemo.ipynb) for more details.
132
+
133
+ ## ⚙️ Preprocessing Details
134
+ - Resizing: The original large images were split into smaller patches, each resized to *512x512 pixels*.
135
+ - Annotations: Converted to COCO format for better compatibility and flexibility.
136
+
137
+ ## 📚 Used in Research
138
+
139
+ This processed version of DIOR has been used in the paper:
140
+ 📄 [LoRA for Cross-Domain Few-Shot Object Detection](https://huggingface.co/papers/2504.06330)
141
+ The dataset served as a target domain for evaluating the generalization capabilities of diffusion-based object detectors in low-data regimes.
142
+
143
+ ## 📝 How to Cite
144
+ If you use this dataset, please consider citing the original DIOR dataset:
145
+
146
+ ```plaintext
147
+ @article{Li_2020,
148
+ title={Object detection in optical remote sensing images: A survey and a new benchmark},
149
+ volume={159},
150
+ ISSN={0924-2716},
151
+ url={http://dx.doi.org/10.1016/j.isprsjprs.2019.11.023},
152
+ DOI={10.1016/j.isprsjprs.2019.11.023},
153
+ journal={ISPRS Journal of Photogrammetry and Remote Sensing},
154
+ publisher={Elsevier BV},
155
+ author={Li, Ke and Wan, Gang and Cheng, Gong and Meng, Liqiu and Han, Junwei},
156
+ year={2020},
157
+ month=jan, pages={296–307}}
158
+ ```
159
+
160
+ Additionally, you can mention this repository for the resized COCO and Hugging Face formats.
161
+
162
+
163
+ Enjoy using DIOR in coco format for your object detection experiments! 🚀