GithubHelp home page GithubHelp logo

adipandas / one-shot-steel-surfaces Goto Github PK

View Code? Open in Web Editor NEW
35.0 5.0 10.0 54.67 MB

One-Shot Recognition of Manufacturing Defects in Steel Surfaces

Home Page: https://adipandas.github.io/one-shot-steel-surfaces/

License: MIT License

Jupyter Notebook 100.00%
python pytorch siamese-network manufacturing quality-control steel-defect deep-learning few-shot-learning one-shot-learning convolutional-neural-networks

one-shot-steel-surfaces's Introduction

One-Shot Recognition of Manufacturing Defects in Steel Surfaces

This repository contains the codes for the paper:
Deshpande, A. M., Minai, A. A., & Kumar, M. (2020). One-Shot Recognition of Manufacturing Defects in Steel Surfaces. [arxiv] [paper] [website] [code]

Network Architecture

Training Loss curve

Requirements

numpy
scipy
matplotlib
torch
torchvision
scikit-learn
imutils
opencv-python
Pillow
jupyterlab
Do the following in given order to install all the packages

Create a python virtual environment, preferrablely using Anaconda.
Download anaconda and install from here.
To create the virtual environment, open terminal (anaconda prompt) and execute:

conda create -n steel_p36 python=3.6

Activate python environment in your terminal:

conda activate steel_p36

Run the following commands in your terminal to install all the dependencies.

pip install numpy scipy matplotlib
pip install jupyterlab
pip install Pillow
pip install opencv-contrib-python
pip install -U scikit-learn
pip install torch torchvision

Dataset

Dataset Reference: Song, K., Yan, Y. (2013). A noise robust method based on completed local binary patterns for hot-rolled steel strip surface defects. Applied Surface Science, 285, 858-864.

You can get the dataset from:

  • NEU Steel Surface defect dataset: website

I have noticed that there are issues such as dataset website is not reachable. In that case you can get the dataset from the following Google Drive link:

Citation

If you use the code provided in this repository, please cite this work as follows:

@article{deshpande20201064,
title={{One-Shot Recognition of Manufacturing Defects in Steel Surfaces}},
journal= {Procedia Manufacturing},
volume= {48},
pages= {1064 - 1071},
year= {2020},
note= {48th SME North American Manufacturing Research Conference, NAMRC 48},
issn= {2351-9789},
doi= {https://doi.org/10.1016/j.promfg.2020.05.146},
url= {http://www.sciencedirect.com/science/article/pii/S2351978920315985},
author= {Aditya M. Deshpande and Ali A. Minai and Manish Kumar},
keywords= {Computer Vision, Deep Learning, Metallic Surface, Convolutional Neural Network, Defect Detection, One-shot recognition, Industrial Internet of Things, Cyber-physical systems, Siamese neural network, Few-shot learning},
}

one-shot-steel-surfaces's People

Contributors

adipandas avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

one-shot-steel-surfaces's Issues

GPU 训练

请问我将模型放到GPU训练后,为何代码没有反应?

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.