firemapping-model
Trained ResNet on Australian Bushfire linescan images to predict fire as a 0:1 and then predict the path of fire. This assists the firefighter department in allocating their limited manpower in areas where the fire will likely traverse.
Science Score: 44.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
✓CITATION.cff file
Found CITATION.cff file -
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (9.9%) to scientific vocabulary
Repository
Trained ResNet on Australian Bushfire linescan images to predict fire as a 0:1 and then predict the path of fire. This assists the firefighter department in allocating their limited manpower in areas where the fire will likely traverse.
Basic Info
Statistics
- Stars: 0
- Watchers: 1
- Forks: 2
- Open Issues: 1
- Releases: 0
Metadata Files
README.md
FireMappingProject
Setting up the environment
- Clone the repo.
git clone https://github.com/FoundingTitan/Fire_Mapping_Project.git
- Copy the contents and paste it into the root of Google Drive.
/content/drive/MyDrive/Fire_Mapping_Project
- Open a colab session at https://colab.research.google.com/
Make sure the session is set to GPU
Runtime > Change runtime Type > Hardware accelerator (from None to GPU)
- Mount your google drive
from google.colab import drive
drive.mount('/content/drive')
- In the first cell run
%cd /content/drive/MyDrive/Fire_Mapping_Project
Training
!python train.py
- Additional arguments can be supplied
Use of additional arguments
Example form of --arg option
!python -W ignore train.py --net attn_unet --epochs 200 > output_attn_unet.txt
Specify model type
--netunetattn_unet
Specify number of epochs
--epochs- Default
100 - Any
intvalue
- Default
Batch-size
--batch_size- Default
8 - Any
intvalue
- Default
cutoff
--cutoff- Default
0.3 - Any
floatvalue
- Default
learning rate
--lr- Default
0.001 - Any
floatvalue
- Default
Print loss values every loginterval epochs `--loginterval`
- Default
1 - Any
intvalue
- Default
Transform data during training mode
--transform_mode- Default Basic
basic - Transform
transform
- Default Basic
Transform type
--transform_types- Default Crop
crop - Horizontal Flip
hflip - Vertical Flip
vflip
- Default Crop
Set training seed
--seed- Default
10 - Any
intvalue.
- Default
Alternative fast setup
- After putting the project in the root directory in the google drive + mounting.
- Go to Google colab and go File > Upload notebook > (change to the Upload tab) > Choose File.
- Choose the
Main_train.ipynborMain_Train_AUC.ipynb. - Make sure the Session runtime is set to GPU (see above).
- Run all cells.
Adding augmented images
- Edit aug.py and add desired transforms at the top of the code. This utilizes the Albumentations package
- Determine file names during the saving stage located at the bottom of the code
- Run aug.py
- Copy and paste generated images located at augmentedimages onto trainimages
- Do the same for generated masks, from augmentedmasks onto trainmasks
Fire Prediction
- Open Wild_Fire.py with text editor to select image, image path and initial conditions
- Run Wild_Fire.py when satified.
Owner
- Name: AJ
- Login: jaina1008
- Kind: user
- Repositories: 1
- Profile: https://github.com/jaina1008
Data Scientist. ML Researcher. UoA MDataSci Graduate.
Citation (CITATION.cff)
cff-version: 1.2.0
message: "If you use this software, please cite it as below."
authors:
- family-names: Jain
given-names: Anshul
- family-names: Abiad
given-names: Jonathan
- family-names: Yu
given-names: He
- family-names: Chang
given-names: Carl
title: "Bushfire Detection and Mapping"
date-released: 2021-10-22
url: "https://github.com/FoundingTitan/Fire_Mapping_Project"
GitHub Events
Total
- Fork event: 1
Last Year
- Fork event: 1