Skip to content
This repository was archived by the owner on Sep 10, 2024. It is now read-only.

Commit 77da4ae

Browse files
aweinert-MITrearley516dnadiaimgbot[bot]
authored
New tutorials and polish (#23)
- Add / update new tutorials formatted as Juypter notbooks - Add "scripts to rule them all" and used the `em-core` scripts as a template - Updated and define S3 client - Added persistent system environment variable instructions - README Updates - Replaced static links to original repo with dynamic links for this repo - Improved organization - Various markdown linting Co-authored-by: Ryan Earley <66645596+rearley516@users.noreply.github.com> Co-authored-by: Nadia Dimitrova <54898993+dnadia@users.noreply.github.com> Co-authored-by: imgbot[bot] <31301654+imgbot[bot]@users.noreply.github.com>
1 parent 67ea474 commit 77da4ae

52 files changed

Lines changed: 3765 additions & 80 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

README.md

Lines changed: 47 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,67 @@
1-
# Tutorials Guide
1+
# LADI Tutorials
2+
3+
Tutorials for the Low Altitude Disaster Imagery (LADI) dataset. This tutorial was originally forked from a [Penn State Learning Factory](https://www.lf.psu.edu/) capstone project.
4+
5+
- [LADI Tutorials](#ladi-tutorials)
6+
- [Point of Contact](#point-of-contact)
7+
- [Initial Setup](#initial-setup)
8+
- [Persistent System Environment Variables](#persistent-system-environment-variables)
9+
- [Scripts](#scripts)
10+
- [Tutorials - Accessing the Dataset](#tutorials---accessing-the-dataset)
11+
- [Tutorials - Metadata Analysis](#tutorials---metadata-analysis)
12+
- [Tutorials - Machine Learning](#tutorials---machine-learning)
13+
- [Distribution Statement](#distribution-statement)
214

3-
Tutorial for the Low Altitude Disaster Imagery (LADI) dataset. This tutorial was originally forked from a [Penn State Learning Factory](https://www.lf.psu.edu/) capstone project
15+
## Point of Contact
416

5-
- [Tutorials Guide](#tutorials-guide)
6-
- [Getting Started](#getting-started)
7-
- [Clean and Validate LADI Dataset](#clean-and-validate-ladi-dataset)
8-
- [PyTorch Data Loading](#pytorch-data-loading)
9-
- [Train and Test A Classifier](#train-and-test-a-classifier)
10-
- [Fine Tuning Torchvision Models](#fine-tuning-torchvision-models)
11-
- [Distribution Statement](#distribution-statement)
17+
We encourage the use of the [GitHub Issues](https://guides.github.com/features/issues/) but when email is required, please contact the administrators at [ladi-dataset-admin@mit.edu](mailto:ladi-dataset-admin@mit.edu). As the public safety and computer vision communities adopt the dataset, a separate mailing list for development may be created.
1218

13-
## Getting Started
19+
## Initial Setup
1420

15-
[Getting Started](./Tutorials/Get_Started.md)
21+
This section specifies the run order and requirements for the initial setup the repository. Other repositories in this organization may be reliant upon this setup being completed.
1622

17-
This documentation is about installing AWS tools and configuring AWS environment to download LADI dataset and load dataset in Python locally and remotely.
23+
### Persistent System Environment Variables
1824

19-
## Clean and Validate LADI Dataset
25+
Immediately after cloning this repository, [create a persistent system environment](https://superuser.com/q/284342/44051) variable titled `LADI_DIR_TUTORIAL` with a value of the full path to this repository root directory.
2026

21-
[Clean and Validate LADI Dataset](./Tutorials/Clean_Validate.md)
27+
On unix there are many ways to do this, here is an example using [`/etc/profile.d`](https://unix.stackexchange.com/a/117473). Create a new file `ladi-env.sh` using `sudo vi /etc/profile.d/ladi-env.sh` and add the command to set the variable:
2228

23-
This documentation is about clean the LADI dataset. For this project, we have only extracted 2000 images for training.
29+
```bash
30+
export LADI_DIR_TUTORIAL=PATH TO /ladi-tutorial
31+
```
2432

25-
## PyTorch Data Loading
33+
You can confirm `LADI_DIR_TUTORIAL` was set in unix by inspecting the output of `env`.
2634

27-
[PyTorch Data Loading](./Tutorials/Pytorch_Data_Load.md)
35+
### Scripts
2836

29-
This documentation is about loading LADI dataset in PyTorch framework including examples of writing custom `Dataset`, `Transforms` and `Dataloader`.
37+
This is a set of boilerplate scripts describing the [normalized script pattern that GitHub uses in its projects](https://github.blog/2015-06-30-scripts-to-rule-them-all/). The [GitHub Scripts To Rule Them All](https://github.com/github/scripts-to-rule-them-all) was used as a template. Refer to the [script directory README](./script/README.md) for more details.
38+
39+
You will need to run these scripts in this order to download package dependencies and download all of the necessary data to get you started.
40+
41+
## Tutorials - Accessing the Dataset
3042

31-
## Train and Test A Classifier
43+
A set of tutorials focused on installing AWS tools and configuring AWS environment to download LADI dataset and load dataset in Python locally and remotely. There is also a short tutorial on how to clean and validate data.
3244

33-
[Train and Test A Classifier](./Tutorials/Train_Test_Classifier.md)
45+
- [Getting Started](./tutorials/Get_Started.md)
46+
- [Clean and Validate LADI Dataset](./tutorials/Clean_Validate.md)
3447

35-
This documentation is about training and testing a classifier model using Convolutional Neural Network (CNN) from scratch.
48+
## Tutorials - Metadata Analysis
3649

37-
## Fine Tuning Torchvision Models
50+
A set of tutorials are Jupyter Python 3.X notebooks that demonstrate on how to perform geospatial analysis by enhancing the LADI metadata with third party GIS information. One tutorial identifies the number of images taken within an administrative boundary (e.g. USA states) and assigns each state a color based on the number of images taken. The other tutorial filters images based on an specific annotation and performs various geospatial measurements on this subset.
3851

39-
[Fine Tuning Torchvision Models](./Tutorials/Fine_Tune_Torchvision_Models.md)
52+
- [ISO-3166-2 Administrative Boundaries](./tutorials/Geospatial-Hurricane-Analysis.ipynb)
53+
- [Geospatial Hurricane Analysis](./tutorials/Geospatial-Hurricane-Analysis.ipynb)
4054

41-
This documentation is about training and testing a classifier model using pre-trained ResNet and AlexNet.
55+
### Tutorials - Machine Learning
56+
57+
These tutorials focus on how to training and testing a classifier model using Convolutional Neural Network (CNN) from scratch or using pre-trained ResNet and AlexNet.
58+
59+
- [PyTorch Data Loading](./tutorials/Pytorch_Data_Load.md)
60+
- [Train and Test A Classifier](./tutorials/Train_Test_Classifier.md)
61+
- [Fine Tuning Torchvision Models](./tutorials/Fine_Tune_Torchvision_Models.md)
62+
63+
This documentation is about loading LADI dataset in PyTorch framework including examples of writing custom `Dataset`, `Transforms` and `Dataloader`.
4264

4365
## Distribution Statement
4466

45-
[BSD -Clause License](https://github.com/LADI-Dataset/ladi-tutorial/blob/master/LICENSE)
67+
[BSD 3-Clause License](LICENSE)

Tutorials/Model Script/README.md

Lines changed: 0 additions & 7 deletions
This file was deleted.

data/Census-AHS/README.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Census-AHS
2+
The Census' American Housing Survey data provides information about the physical costs and conditions of homes, characteristics of the people living in these houses, and characteristics for disaster response of more than 60,000 Americans
3+
4+
## Download Instructions
5+
6+
### Script (Recommended)
7+
8+
[`script/setup.sh`](../../script/setup.sh) is used to set up the project in an initial state. It will download and extract the data.
9+
10+
### Manual
11+
12+
Although not recommended, the data can be downloaded manually:
13+
14+
1. Go to the US-Census National public use file page: [Census](https://www.census.gov/programs-surveys/ahs/data/2017/ahs-2017-public-use-file--puf-/ahs-2017-national-public-use-file--puf-.html)
15+
2. download the AHS 2017 National PUF v3.0 CSV (or the latest version)
16+
17+
## Distribution Statement
18+
19+
[BSD -Clause License](https://github.com/LADI-Dataset/ladi-tutorial/blob/master/LICENSE)

data/Census-CBSA/README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Census-CBSA
2+
3+
Census-CBSA defines US Metropolitan and Micropolitan statistical areas. This Census data is provided as a geospatial-enabled file format.
4+
5+
## Download Instructions
6+
7+
### Script (Recommended)
8+
9+
[`script/setup.sh`](../../script/setup.sh) is used to set up the project in an initial state. It will download and extract the data.
10+
11+
### Manual
12+
13+
Although not recommended, the data can be downloaded manually:
14+
15+
1. Go to the US-Census Bureau open data website: [US-CBSA](https://catalog.data.gov/dataset/tiger-line-shapefile-2019-nation-u-s-current-metropolitan-statistical-area-micropolitan-statist)
16+
2. download the latest version of the Shapefile Zip File
17+
18+
## Distribution Statement
19+
20+
[BSD -Clause License](https://github.com/LADI-Dataset/ladi-tutorial/blob/master/LICENSE)

data/Census-State/README.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Census-State
2+
3+
Census-State defines statistical areas for all US-States. This Census data is provided as a geospatial-enabled file format.
4+
5+
6+
## Download Instructions
7+
8+
### Script (Recommended)
9+
10+
[`script/setup.sh`](../../script/setup.sh) is used to set up the project in an initial state. It will download and extract the data.
11+
12+
### Manual
13+
14+
Although not recommended, the data can be downloaded manually:
15+
16+
1. Go to the US-Census Bureau open data website: [US-State](https://catalog.data.gov/dataset/tiger-line-shapefile-2017-nation-u-s-current-state-and-equivalent-national)
17+
2. download the latest version of the Shapefile Zip File
18+
19+
## Distribution Statement
20+
21+
[BSD -Clause License](https://github.com/LADI-Dataset/ladi-tutorial/blob/master/LICENSE)

data/FAA-Airports/README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# FAA Airports
2+
3+
Airport defines area on land or water intended to be used either wholly or in part for the arrival; departure and surface movement of aircraft/helicopters. This airport data is provided as a vector geospatial-enabled file format.
4+
5+
## Download Instructions
6+
7+
### Script (Recommended)
8+
9+
[`script/setup.sh`](../../script/setup.sh) is used to set up the project in an initial state. It will download and extract the data.
10+
11+
### Manual
12+
13+
Although not recommended, the data can be downloaded manually:
14+
15+
1. Go to the FAA open data website: [Airports](https://ais-faa.opendata.arcgis.com/datasets/e747ab91a11045e8b3f8a3efd093d3b5_0)
16+
2. Select shapefile from the Download drop down

data/Natural-Earth/README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Natural-Earth
2+
The Natural Earth file is a comprehensive map of the world and it's administrative boundaries (states, fips, countries). This map is provided as a geospatial-enabled file format.
3+
4+
### Script (Recommended)
5+
6+
[`script/setup.sh`](../../script/setup.sh) is used to set up the project in an initial state. It will download and extract the data.
7+
8+
### Manual
9+
10+
Although not recommended, the data can be downloaded manually:
11+
12+
1. Go to the Natural Earth download page: [Natural-Earth](https://www.naturalearthdata.com/downloads/10m-cultural-vectors/10m-admin-1-states-provinces/)
13+
2. Download states and provinces version 4.1.0 (or the latest version)
14+
15+
## Distribution Statement
16+
17+
[BSD -Clause License](https://github.com/LADI-Dataset/ladi-tutorial/blob/master/LICENSE)
File renamed without changes.
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# Tutorials
1+
# Data
22

3-
Default directory for tutorials markdowns.
3+
Default directory for sample data used by tutorials.
44

55
## Distribution Statement
66

0 commit comments

Comments
 (0)