CHamilton0 / Space-Analytics-Engine

A project done for Topics in Computer Science with Mask R-CNN to experiment with model pruning and ship detection in satellite images.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Space Analytics Engine

Major project for Topics in Computer Science. Implementing machine learning for ship detection using Mask R-CNN framework. Also includes an implementation of model pruning to reduce the storage, memory, and power usage of the model.

Mask R-CNN Implementation

Matterport has released a Mask R-CNN implemetation using TensorFlow and Keras in Python that will be used in this project. The original repository can be found at https://github.com/matterport/Mask_RCNN. The modified version for TensorFlow 2 that is used in this project can be found at https://github.com/akTwelve/Mask_RCNN. This version was furhter modified to include a function to save the outputted images directly.

Project setup

To run this project in its entirety using an NVIDIA GPU, you will need:

Training

Training on the Airbus ship detection challenge dataset can be done with the training.ipynb notebook. Please modify the paths near the beginning of the notebook to work with your directory structure. You are able to modify the training parameters as you need. Training on the Airbus Ship Detection Challenge Dataset is based on the code from https://github.com/abhinavsagar/kaggle-notebooks/blob/master/ship_segmentation.ipynb

Testing

Testing of the trained model can be done with the testing.ipynb notebook. Please provide the location of the weights you would like to test. This notebook will also evaluate the model against the dataset to calculate the mAP and mAR.

Pruning

Pruning of the trained model can be done with the prune.ipynb notebook. Please provide the location of the weights you would like to prune. Once the weights are pruned this notebook will re-train the model to regain accuracy. You are able to modify the training parameters as you need.

About

A project done for Topics in Computer Science with Mask R-CNN to experiment with model pruning and ship detection in satellite images.


Languages

Language:Jupyter Notebook 97.5%Language:Python 2.5%