Giter Club home page Giter Club logo

corrosion-detection's Introduction

How to install

How to run

Data annotation

Annotate your dataset here: http://www.robots.ox.ac.uk/~vgg/software/via/via-1.0.6.html
Note: image should be in .jpg format

Splitting data

Place you annotated dataset in a folder with a name different than dataset (images + via_region_data.json)
Run split.py dataset_folder train_percentage validation_percentage test_percentage to split the data into test, train and validation (eg. split.py original_dataset 70 15 15, the sum of the three int values have to be 100)
You can run split.py without percentages, default values are 70 15 15
By default, the original dataset is kept intact, a folder named dataset will be created and it will contain the new processed dataset.

Data Augmentation

to perform data augmentation, run data_augmentation.py
Data augmentation is performed on ./dataset/train only

Training

To train run:
python3 ./corrosion.py train --weights=coco --dataset=./dataset
This performs training on the pretrained model on the coco dataset

Testing

After training, you can find the latest model in the ./logs folder (eg. ./logs/damage20200329T2242/mask_rcnn_damage_0010.h5), perform testing using it
python3 ./corrosion.py test --weights="latest_model_path" --dataset=./dataset
This outputs the resulted images in ./output and displays the score for each image and the mean score

Useful links

corrosion-detection's People

Contributors

makammoun avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

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.