Datasets:

Modalities:
Image
Formats:
arrow
ArXiv:
DOI:
Libraries:
Datasets
License:
jeffliu-LL commited on
Commit
06ac093
·
verified ·
1 Parent(s): 765f544

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +134 -3
README.md CHANGED
@@ -1,3 +1,134 @@
1
- ---
2
- license: mit
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ task_categories:
4
+ - image-classification
5
+ tags:
6
+ - aerial imagery
7
+ - disaster
8
+ - multilabel classification
9
+ - damage assessment
10
+ pretty_name: LADI v2
11
+ size_categories:
12
+ - 10K<n<100K
13
+ ---
14
+ # Dataset Card for LADI-v2-dataset
15
+ ## Dataset Summary : v2
16
+ The LADI-v2 dataset is a set of aerial disaster images captured and labeled by the Civil Air Patrol (CAP). The images are geotagged (in their EXIF metadata). Each image has been labeled in triplicate by CAP volunteers trained in the FEMA damage assessment process for multi-label classification; where volunteers disagreed about the presence of a class, a majority vote was taken. The classes are:
17
+
18
+ - bridges_any
19
+ - bridges_damage
20
+ - buildings_affected
21
+ - buildings_any
22
+ - buildings_destroyed
23
+ - buildings_major
24
+ - buildings_minor
25
+ - debris_any
26
+ - flooding_any
27
+ - flooding_structures
28
+ - roads_any
29
+ - roads_damage
30
+ - trees_any
31
+ - trees_damage
32
+ - water_any
33
+
34
+ The v2 dataset consists of approximately 10k images, split into a train set of 8k images, a validation set of 1k images, and a test test of 1k images. The train and validation sets are drawn from the same distribution (CAP images from federally-declared disasters 2015-2022), whereas the test set is drawn from events in 2023, which has a different distribution of event types and locations. This is done to simulate the distribution shift as new events occur each year.
35
+
36
+ ### Dataset v2a
37
+ The `v2a` dataset presents the same images with a subset of the labels, where the damage categories for buildings have been compressed into two classes of `buildings_affected_or_greater` and `buildings_minor_or_greater`. We find that this task is easier and of similar practical value for triage purposes.
38
+
39
+ - bridges_any
40
+ - buildings_any
41
+ - buildings_affected_or_greater
42
+ - buildings_minor_or_greater
43
+ - debris_any
44
+ - flooding_any
45
+ - flooding_structures
46
+ - roads_any
47
+ - roads_damage
48
+ - trees_any
49
+ - trees_damage
50
+ - water_any
51
+
52
+ ## Dataset Summary: v1
53
+ This dataset code also supports loading a subset of the LADI v1 dataset, which consists of roughly 25k images, broken into two tasks, 'infrastructure' and 'damage'. The LADI v1 dataset was labeled by crowdsourced workers and the labels shouldn't be considered definitive. The data may be suitable for a pretraining task prior to fine-tuning on LADI v2.
54
+
55
+ The infrastructure task involves identifying infrastructure in images and has classes `building` and `road`. It is divided into a train set of 8.2k images and a test set of 2k images.
56
+
57
+ The damage task involves identifying damage and has classes `flood`, `rubble`, and `misc_damage`. It is divided into a train set of 14.4k images and a test set of 3.6k images.
58
+
59
+
60
+ ## Supported Tasks
61
+ The images are labeled for multi-label classification, as any number of the elements listed above may be present in a single image.
62
+
63
+ ## Data Structure
64
+ A single example in the v2a dataset looks like this:
65
+
66
+ ```
67
+ {
68
+ 'image': <PIL.PngImagePlugin.PngImageFile image mode=RGB size=1800x1200 at ...>,
69
+ 'bridges_any': False,
70
+ 'buildings_any': False,
71
+ 'buildings_affected_or_greater': False,
72
+ 'buildings_minor_or_greater': False,
73
+ 'debris_any': False,
74
+ 'flooding_any': False,
75
+ 'flooding_structures': False,
76
+ 'roads_any': False,
77
+ 'roads_damage': False,
78
+ 'trees_any': True,
79
+ 'trees_damage': True,
80
+ 'water_any': True
81
+ }
82
+ ```
83
+
84
+ Examples in the v1 datasets are analogous, with classes drawn from their respective tasks (infrastructure and damage).
85
+ ## Using the Dataset
86
+ ### Downloading the Dataset
87
+ You can download the dataset by loading it with `download_ladi=True`, which fetches the compressed data from an s3 bucket and extracts it into your filesystem:
88
+
89
+ ```python
90
+ from datasets import load_dataset
91
+
92
+ ds = load_dataset("MITLL/LADI-v2-dataset", "v2a_resized",
93
+                 streaming=True, download_ladi=True,
94
+                 base_dir='./ladi_base', trust_remote_code=True)
95
+ ```
96
+
97
+ You can browse the bucket here: [https://ladi.s3.amazonaws.com/index.html](https://ladi.s3.amazonaws.com/index.html). Note that the `v2_resized` dataset is the same as the `v2` dataset, but with lower-resolution images (1800x1200 px). We expect that these images are still more than large enough to support most tasks, and encourage you to use the v2_resized and v2a_resized datasets when possible as the download is about 45x smaller. We try not to download images you don't need, so this will only fetch the v2_resized images, leaving v1 and v2 alone.
98
+
99
+ We intend for this dataset to be used mostly in streaming mode from individual files. While you can convert it to a parquet table, we typically use the dataset with `streaming=True`, which allows you to navigate, inspect, and alter the dataset on the filesystem. After the initial download, simply omitting the `download_ladi` argument, or passing `download_ladi=False`, will use the version of LADI already in `base_dir`:
100
+
101
+ ```python
102
+ from datasets import load_dataset
103
+
104
+ ds = load_dataset("MITLL/LADI-v2-dataset", "v2a_resized",
105
+                 streaming=True, base_dir='./ladi_base',
106
+                 trust_remote_code=True)
107
+ ```
108
+
109
+ **As previously noted, LADI v1 does not have separate test and validation sets, so the 'val' and 'test' splits in LADI v1 data point to the same labels!**
110
+
111
+ ## Dataset Information:
112
+
113
+ - **Citation - BibTeX**:
114
+
115
+ ```
116
+
117
+ ```
118
+
119
+ Paper forthcoming - watch this space for details
120
+
121
+ - **Developed by:** Jeff Liu, Sam Scheele
122
+ - **Funded by:** Department of the Air Force under Air Force Contract No. FA8702-15-D-0001
123
+ - **License:** MIT
124
+
125
+ ---
126
+ DISTRIBUTION STATEMENT A. Approved for public release. Distribution is unlimited.
127
+
128
+ This material is based upon work supported by the Department of the Air Force under Air Force Contract No. FA8702-15-D-0001. Any opinions, findings, conclusions or recommendations expressed in this material are those of the author(s) and do not necessarily reflect the views of the Department of the Air Force.
129
+
130
+ © 2024 Massachusetts Institute of Technology.
131
+
132
+ The software/firmware is provided to you on an As-Is basis
133
+
134
+ Delivered to the U.S. Government with Unlimited Rights, as defined in DFARS Part 252.227-7013 or 7014 (Feb 2014). Notwithstanding any copyright notice, U.S. Government rights in this work are defined by DFARS 252.227-7013 or DFARS 252.227-7014 as detailed above. Use of this work other than as specifically authorized by the U.S. Government may violate any copyrights that exist in this work.