GithubHelp home page GithubHelp logo

stevenlol / surfacedefectdetection-using-machine-vision Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mishra2611/surfacedefectdetection-using-machine-vision

0.0 2.0 0.0 112.67 MB

Python 100.00%

surfacedefectdetection-using-machine-vision's Introduction

SurfaceDefectDetection-using-Machine-Vision

The project consists of three files which are used for defect identification and localization:

  1. batch_processing.py: this contains the model and code for batch processing of data that can handle large datasets.
  2. MY_Generator.py: this file consists of the file format in which the input and label files are being picked up for processing.
  3. predict.py: this file contains a preliminary code to load model and predict its outcome for defect localization.
  4. The files metrics.py contains the function definition of the metrices used for comparision, which is IOU, recall, precision, accuracy and f1score.
  5. The files resnet.py and segnet.py contains the models for ResNet and SegNet respectively.
  6. The files deeplab.py, load_weights.py and extract_weights.py correspond to loading and extracting weights using DeepLab.

Procedure to train the images:

The script batch_processing.py can be run with the following command-line arguments:
1 : Unet.
2 : ResNet.
3 : SegNet.
Run the script in the following command: python batch_processing.py 1/2/3.

Procedure to run the predict.py script for predicting test images.

The predict.py script takes a command-line argument as the folder that contains the images, use the following command to run the script:
python predict.py </location/to/folder> .

The following verions of libraries were used for the development of this project:
Keras:2.2.4
TensorFlow:1.4.0
Python: 3.6

Implementation of this Paper :- http://erk.fe.uni-lj.si/2017/papers/racki(towards_surface).pdf is done in the file fccn.py.

surfacedefectdetection-using-machine-vision's People

Contributors

mishra2611 avatar

Watchers

 avatar  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.