--- license: cc-by-4.0 task_categories: - image-classification tags: - aerial imagery - disaster - multilabel classification - damage assessment pretty_name: LADI v2 size_categories: - 10K, 'bridges_any': False, 'buildings_any': False, 'buildings_affected_or_greater': False, 'buildings_minor_or_greater': False, 'debris_any': False, 'flooding_any': False, 'flooding_structures': False, 'roads_any': False, 'roads_damage': False, 'trees_any': True, 'trees_damage': True, 'water_any': True } ``` Examples in the v1 datasets are analogous, with classes drawn from their respective tasks (infrastructure and damage). ## Using the Dataset ### Default Configuration The `main` branch of the dataset will load the `v2a` label set with images resized to fit within 1800x1200. For most use cases, this should be sufficient. ```python from datasets import load_dataset ds = load_dataset("MITLL/LADI-v2-dataset") ``` ### Advanced usage If you need access to the full resolution images, the v2 label set, or the v1 dataset, you should load from the `script` revision. This will use a custom dataset loader script, which will require you to set `trust_remote_code=True`. The available configurations for the script are: `v2`, `v2a`, `v2_resized`, `v2a_resized`, `v1_damage`, `v1_infra`. 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 at `base_dir`: ```python from datasets import load_dataset ds = load_dataset("MITLL/LADI-v2-dataset", "v2a_resized", revision="script",                 streaming=True, download_ladi=True,                 base_dir='./ladi_dataset', trust_remote_code=True) ``` 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. 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`: ```python from datasets import load_dataset ds = load_dataset("MITLL/LADI-v2-dataset", "v2a_resized", revision="script",                 streaming=True, base_dir='./ladi_dataset',                 trust_remote_code=True) ``` **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!** ## Dataset Information: - **Citation - BibTeX**: ``` @misc{ladi_v2, title={LADI v2: Multi-label Dataset and Classifiers for Low-Altitude Disaster Imagery}, author={Samuel Scheele and Katherine Picchione and Jeffrey Liu}, year={2024}, eprint={2406.02780}, archivePrefix={arXiv}, primaryClass={cs.CV} } ``` Paper forthcoming - watch this space for details - **Developed by:** Jeff Liu, Sam Scheele - **Funded by:** Department of the Air Force under Air Force Contract No. FA8702-15-D-0001 - **License:** MIT for code, CC-by-4.0 for data --- DISTRIBUTION STATEMENT A. Approved for public release. Distribution is unlimited. 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. © 2024 Massachusetts Institute of Technology. The software/firmware is provided to you on an As-Is basis 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.