Datasets:

Modalities:
Text
Formats:
text
Languages:
English
ArXiv:
Libraries:
Datasets
nalemadi commited on
Commit
d5674b2
·
verified ·
1 Parent(s): 5952d4e

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +49 -0
README.md CHANGED
@@ -1,3 +1,52 @@
1
  ---
2
  license: cc-by-nc-nd-4.0
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
  license: cc-by-nc-nd-4.0
3
  ---
4
+
5
+ ## Environment Setup for data preparation and preprocessing
6
+
7
+ ```bash
8
+ pip install -r requirements.txt
9
+ ```
10
+
11
+ ## CDSI Dataset preparation
12
+ For using the VME dataset, both OBB (YOLO) and HBB (MS-COCO) formats are available with the desired splits.
13
+
14
+ In order to build the CDSI dataset, you need to follow the steps below:
15
+
16
+ 1. Download each dataset from its repository:
17
+ * xView (https://challenge.xviewdataset.org/)
18
+ * DOTA-v2.0 (https://captain-whu.github.io/DOTA/index.html)
19
+ * VEDAI (https://downloads.greyc.fr/vedai/)
20
+ * DIOR (https://gcheng-nwpu.github.io/)
21
+ * FAIR1M-2.0 (http://gaofen-challenge.com/benchmark)
22
+
23
+ 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:
24
+
25
+ ### Instructions before starting:
26
+
27
+ 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
28
+
29
+ b. To generate SPLIT_FILE.txt for each setup (original | CDSI_other | CDSI), run this command under each dataset directory (example for car setup):
30
+
31
+ ```bash
32
+ grep 'xview' CDSI_train.txt > xview_car_train.txt
33
+
34
+ SPLIT_FILE == xview_car_train.txt
35
+ ```
36
+
37
+ ** For DOTA-v2.0: please check ``dota2`` directory
38
+
39
+
40
+ ### Converting each dataset to COCO format
41
+
42
+ Under each dataset directory, DATANAME_to_coco.py script is available to convert the specified dataset
43
+ ```bash
44
+ python DATANAME_to_coco.py IMG_DIR SPLIT_FILE.txt OUT_DIR MODE
45
+ ```
46
+
47
+ ### Combining train-val-test splits
48
+
49
+ 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. This step needs to be repeated to complete CDSI specific split.
50
+ ```bash
51
+ pyodi coco merge SPLIT_A.json SPLIT_B.json SPLIT_A_B.json
52
+ ```