GithubHelp home page GithubHelp logo

wangpeng000 / visualinspection Goto Github PK

View Code? Open in Web Editor NEW
9.0 2.0 1.0 66 KB

The code for "Self-supervised Context Learning for Visual Inspection of Industrial Defects"

Home Page: https://arxiv.org/abs/2311.06504

Python 100.00%
object-segmentation

visualinspection's Introduction

SCL-VI: Self-supervised Context Learning for Visual Inspection of Industrial Defects

We address the challenge of detecting object defects through the self-supervised learning approach of solving the jigsaw puzzle problem.

Results

segmentation

Dependencies

Since I did this project a long time ago, there may be some potential issues with environmental dependencies.

  • Tested with Python 3.8
  • Pytorch v1.6.0

Dateset

Run Training

  • python train.py --obj=cable --lambda_value=1 --D=64 --epoches=400 --lr=1e-4 --gpu=0

Run Affinity Testing

  • python test.py --obj=cable --gpu=0
  • enc.load(obj, N) N is the serial number of the obtained training weight file

Anomaly maps

  • python heat_map.py --obj=cable
  • enc.load(obj, N) N is the serial number of the obtained training weight file

Details:

  • The input of the network should be 256x256
  • data.npy contains the relative positions and their reference numbers.

visualinspection's People

Contributors

wangpeng000 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

lizhuo97

visualinspection's Issues

训练时长

这代码训练需要多长时间?我看了代码好像主要时间都在
image
这个上面,请问这个需要花费多长时间?

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.