-
Notifications
You must be signed in to change notification settings - Fork 0
Convolutional Neural Networks for Delamination Assessment
The CNN for defect detection module contains code specifically for delamination assessment. This code can:
- Train a dataset of pixel-wise labeled infrared images to automatically detect and localize delaminations
- Test and visualize a single prediction generated by a saved network
- Evaluate a model’s metrics on a given dataset
- Generate prediction output for a set of input data ran through a saved network
The following steps are all adjustments made to variables in the code.
- Define the input shape of the model and number of classes
- Adjust the validation and training directory
- Compile the model to select optimizer and metrics to track. If unsure, leave as default
- Set batch size, image height, and image width
- Set the desired number of:
- Steps per epoch: should equal to the total number of samples (e.g. images) divided by the batch size
- Epochs: how many times to train on dataset. Higher may provide better results at cost of computation time
- Validation steps: should equal the total number of validation samples (e.g. images) divided by the validation batch size
To run training, execute train_delam.py
. The program will report a training update at the end of each epoch.
The following steps are all adjustments made to variables in the code.
- Enter the path to the model you desire to test and visualize
- Enter the paths to the image and image mask
- The image must be the same size as the model’s expected input size. Resizing by zero-padding can be used if required
To run, execute prediction_test.py
. The program will output the original image, image mask, and prediction label.
The following steps are all adjustments made to variables in the code.
- Enter the path to the model you desire to evaluate
- Enter the paths to the image and image mask
- Set batch size, image height, and image width
- Set number of steps
- Steps: should equal to the total number of samples (e.g. images) divided by the batch size
To run, execute label_gen.py
. The program will output the models final scores on specified statistics (e.g. IoU Loss, cross-entropy loss)
The following steps are all adjustments made to variables in the code.
- Enter the path to the model to use for prediction output
- Enter the path to the directory containing the images to be used as inputs
- The predictions will be saved in the folder titled
predictions_dir
To run, execute label_gen.py
. The program will save the predictions in the folder titled predictions_dir
.
- Home
- Onboarding
- Installation Guide
- Libbeam
- Mapping
- Calibration
- Hardware Instructions
- Deep Learning
- Formatting
- PoTree Maps
- Supported Hardware
- Additional Resources