Datasets:

Modalities:
Text
Formats:
text
Languages:
English
ArXiv:
Libraries:
Datasets
File size: 1,954 Bytes
d5674b2
 
 
 
 
 
 
328d23c
d5674b2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
328d23c
d5674b2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
328d23c
d5674b2
 
328d23c
 
 
 
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
## Environment Setup for data preparation and preprocessing

```bash
pip install -r requirements.txt
```

## CDSI Dataset preparation
For using the VME dataset, both OBB (YOLO) and HBB (MS-COCO) formats are available with the desired splits. VME images and annotations are available at XXX.

In order to build the CDSI dataset, you need to follow the steps below:

1. Download each dataset from its repository:
    * xView (https://challenge.xviewdataset.org/)
    * DOTA-v2.0 (https://captain-whu.github.io/DOTA/index.html)
    * VEDAI (https://downloads.greyc.fr/vedai/)
    * DIOR (https://gcheng-nwpu.github.io/)
    * FAIR1M-2.0 (http://gaofen-challenge.com/benchmark)

2. Convert each dataset to MS-COCO (JSON) format with original/ car-related + other small objects(car-other)/ car-related (car) setup, utilizing each dataset scripts under main directory:

### Instructions before starting:

a. After installing some datasets, it's recommended to put all images under one directory and all annotations under one directory, to ease the MS-COCO conversion

b. To generate SPLIT_FILE.txt for each setup (original|CDSI_other|CDSI), run this command under each dataset directory (example for car setup):

```bash
grep 'xview' CDSI_train.txt > xview_car_train.txt

SPLIT_FILE == xview_car_train.txt
```

** For DOTA-v2.0: please check ``dota2`` directory


### Converting each dataset to COCO format

Under each dataset directory, DATANAME_to_coco.py script is available to convert the specified dataset
```bash
python DATANAME_to_coco.py IMG_DIR SPLIT_FILE.txt OUT_DIR MODE
```

### Combining train-val-test splits

To combine the train-val-test splits from each dataset to construct CDSI splits, please use the following command/package. The command takes 3 arguments:File1.json File2.json OutputFile.json. T$
```bash
pyodi coco merge SPLIT_A.json SPLIT_B.json SPLIT_A_B.json
```

>[!NOTE]
__The benchmark scripts will be released soon! Stay Tuned!__