GithubHelp home page GithubHelp logo

giantrabbit12138 / deep-learning-approach-for-surface-defect-detection Goto Github PK

View Code? Open in Web Editor NEW

This project forked from shuailyu/deep-learning-approach-for-surface-defect-detection

0.0 0.0 0.0 64.42 MB

A Tensorflow implementation of "Segmentation-Based Deep-Learning Approach for Surface-Defect Detection"

Python 100.00%

deep-learning-approach-for-surface-defect-detection's Introduction

Deep-Learning-Approach-for-Surface-Defect-Detection

A Tensorflow implementation of "Segmentation-Based Deep-Learning Approach for Surface-Defect Detection" The author submitted the paper to Journal of Intelligent Manufacturing (https://link.springer.com/article/10.1007/s10845-019-01476-x), where it was published In May 2019 .

The test environment

python 3.6
cuda 9.0
cudnn 7.1.4
Tensorflow 1.12

You should know

I used the Dataset used in the papar, you can download KolektorSDD here. If you train you own datset ,you should change the dataset interfence for you dataset.

You can refer to the paper for details of the experiment.

my experimental results on KolektorSDD

Notes: the first 30 subfolders are used as training sets, the remaining 20 for testing. Although, I did not strictly follow the params of the papar , I still got a good result.

2019-05-21 09:20:54,634 - utils - INFO -  total number of testing samples = 160
2019-05-21 09:20:54,634 - utils - INFO - positive = 22
2019-05-21 09:20:54,634 - utils - INFO - negative = 138
2019-05-21 09:20:54,634 - utils - INFO - TP = 21
2019-05-21 09:20:54,634 - utils - INFO - NP = 0
2019-05-21 09:20:54,634 - utils - INFO - TN = 138
2019-05-21 09:20:54,635 - utils - INFO - FN = 1
2019-05-21 09:20:54,635 - utils - INFO - accuracy(准确率) = 0.9938
2019-05-21 09:20:54,635 - utils - INFO - prescision(查准率) = 1.0000
2019-05-21 09:20:54,635 - utils - INFO - recall(查全率) = 0.9545

visualization: kos49_Part4.jpg

testing the KolektorSDD

After downloading the KolektorSDD and changing the param[data_dir]

python run.py --test

Then you can find the result in the "/visulaiation/test" and "Log/*.txt"

training the KolektorSDD

First, only the segmentation network is independently trained, then the weights for the segmentation network are frozen and only the decision network layers are trained.

training the segment network

python run.py --train_segment

training the decision network

python run.py  --train_decision

training the total network( not good)

python run.py  --train_total

deep-learning-approach-for-surface-defect-detection's People

Contributors

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