GithubHelp home page GithubHelp logo

johnnyhopp / padim-efficientnetv2 Goto Github PK

View Code? Open in Web Editor NEW
20.0 2.0 3.0 1.45 MB

EfficientNetV2 based PaDiM

License: Apache License 2.0

Python 100.00%
anomaly-detection anomaly-detection-models anomaly-localization efficientnetv2 mvtec unsupervised-learning mvtec-ad pytorch efficientnet mahalanobis-distance

padim-efficientnetv2's People

Contributors

johnnyhopp avatar

Stargazers

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

Watchers

 avatar  avatar

padim-efficientnetv2's Issues

Gaussian and Mahalanobis distance

Hello, I would like to ask a question. Now I have found that the Gaussian distribution at certain points exhibits a double Gaussian distribution, and there may be deviations when calculating the mean and covariance. I would like to distinguish the channels that conform to the double Gaussian distribution, and then calculate the minimum Mahalanobis distance separately from the two distributions. Do you have any ideas about this?

How can I determine if an input image is defected or not?

After calculating mean and cov for each patch(x, y) in training set, I feed an image through pretrained model, take out feature maps of each layer, concatenate them then calculate distance to each patch distribution. Basically, I will have the score_map, then up-sample it and normalize it. After that, how can I tell if input data is defected or not? Assume that I already have a optimal threshold. I compare this score_map to the threshold. If any pixel of score_map is bigger than the threshold value, input data will be predicted as defect. In the other hand, if all pixels of score_map are smaller than threshold value, it will be predicted as normal. Am I correct? If not, please let me know. Many thanks!

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.