Giter VIP home page Giter VIP logo

space-analytics-engine's Introduction

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.

space-analytics-engine's People

Contributors

chamilton0 avatar

Stargazers

 avatar

Watchers

 avatar

space-analytics-engine's Issues

Replicate the repo

Hi @CHamilton0 , I am working on pruning the Matterport MaskRCNN Model. I am not able to Prune the Model due to error:

"/home/<>/envs/env-name/lib/python3.6/site-packages/tensorflow/python/keras/engine/functional.py", line 1162, in process_node
    output_tensors = layer(input_tensors, **kwargs)
UnboundLocalError: local variable 'kwargs' referenced before assignment

Can you please share

  1. the conda environment env.yml or requirement.txt with exact python version
  2. Trained Model so that I can see pruning on my end.
  3. or any changes in TF source code.

This would be great help to me and community. Thanks you.

You can contact me at : [email protected]

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.