All Projects → denguir → Student Teacher Anomaly Detection

denguir / Student Teacher Anomaly Detection

Student–Teacher Anomaly Detection with Discriminative Latent Embeddings

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Student Teacher Anomaly Detection

Dynamics
A Compositional Object-Based Approach to Learning Physical Dynamics
Stars: ✭ 159 (+269.77%)
Mutual labels:  artificial-intelligence, unsupervised-learning
Flappy Es
Flappy Bird AI using Evolution Strategies
Stars: ✭ 140 (+225.58%)
Mutual labels:  artificial-intelligence, unsupervised-learning
Php Ml
PHP-ML - Machine Learning library for PHP
Stars: ✭ 7,900 (+18272.09%)
Mutual labels:  artificial-intelligence, unsupervised-learning
He4o
和(he for objective-c) —— “信息熵减机系统”
Stars: ✭ 284 (+560.47%)
Mutual labels:  artificial-intelligence, unsupervised-learning
Change Detection Review
A review of change detection methods, including codes and open data sets for deep learning. From paper: change detection based on artificial intelligence: state-of-the-art and challenges.
Stars: ✭ 248 (+476.74%)
Mutual labels:  artificial-intelligence, unsupervised-learning
Free Ai Resources
🚀 FREE AI Resources - 🎓 Courses, 👷 Jobs, 📝 Blogs, 🔬 AI Research, and many more - for everyone!
Stars: ✭ 192 (+346.51%)
Mutual labels:  artificial-intelligence, unsupervised-learning
Hypergan
Composable GAN framework with api and user interface
Stars: ✭ 1,104 (+2467.44%)
Mutual labels:  artificial-intelligence, unsupervised-learning
Gan Sandbox
Vanilla GAN implemented on top of keras/tensorflow enabling rapid experimentation & research. Branches correspond to implementations of stable GAN variations (i.e. ACGan, InfoGAN) and other promising variations of GANs like conditional and Wasserstein.
Stars: ✭ 210 (+388.37%)
Mutual labels:  artificial-intelligence, unsupervised-learning
L2c
Learning to Cluster. A deep clustering strategy.
Stars: ✭ 262 (+509.3%)
Mutual labels:  artificial-intelligence, unsupervised-learning
Awesome Artificial Intelligence
A curated list of Artificial Intelligence (AI) courses, books, video lectures and papers.
Stars: ✭ 6,516 (+15053.49%)
Mutual labels:  artificial-intelligence, unsupervised-learning
Dataconfs
A list of conferences connected with data worldwide.
Stars: ✭ 36 (-16.28%)
Mutual labels:  artificial-intelligence
Quant Finance Resources
Courses, Articles and many more which can help beginners or professionals.
Stars: ✭ 36 (-16.28%)
Mutual labels:  artificial-intelligence
Science Toolkit
Intelygenz standard environment that covers the technological and methodological needs of a data team in an artificial intelligence project.
Stars: ✭ 40 (-6.98%)
Mutual labels:  artificial-intelligence
Machine Learning From Scratch
Succinct Machine Learning algorithm implementations from scratch in Python, solving real-world problems (Notebooks and Book). Examples of Logistic Regression, Linear Regression, Decision Trees, K-means clustering, Sentiment Analysis, Recommender Systems, Neural Networks and Reinforcement Learning.
Stars: ✭ 42 (-2.33%)
Mutual labels:  artificial-intelligence
Iva
IVA: Independent Vector Analysis implementation
Stars: ✭ 35 (-18.6%)
Mutual labels:  unsupervised-learning
Jfuzzylite
jfuzzylite: a fuzzy logic control library in Java
Stars: ✭ 39 (-9.3%)
Mutual labels:  artificial-intelligence
Artificialintelligenceengines
Computer code collated for use with Artificial Intelligence Engines book by JV Stone
Stars: ✭ 35 (-18.6%)
Mutual labels:  artificial-intelligence
Online Relationship Learning
Unsupervised ML algorithm for predictive modeling and time-series analysis
Stars: ✭ 34 (-20.93%)
Mutual labels:  artificial-intelligence
Carrecognition
This is one of the best vehicle recognition applications. It can determine the car's license plate number, color, model, brand and year.
Stars: ✭ 34 (-20.93%)
Mutual labels:  artificial-intelligence
Pytorch Cpp
C++ Implementation of PyTorch Tutorials for Everyone
Stars: ✭ 1,014 (+2258.14%)
Mutual labels:  artificial-intelligence

Student-Teacher anomaly detection

This is an implementation of the paper Uninformed Students: Student–Teacher Anomaly Detection with Discriminative Latent Embeddings.

How to use

  • Download a dataset from MVTec website and extract it under the /data folder. Let us download the carpet dataset for the example. You might need to run
chmod -R u+rw data
  • Run the mvtec_dataset.sh script to prepare the dataset in the correct format.
./mvtec_dataset.sh carpet
  • (Optional) Run resnet18_training.py script to train resnet18 further on your dataset
cd src
python3 resnet18_training.py carpet
  • Run teacher_training.py to distil the knowledge of resnet18 on a smaller neural network. This will speed up the processing of images. This neural network, called the Teacher, outputs a 512-dimensional description vector for each patch of size 65x65 of the image
cd src
python3 teacher_training.py carpet
  • Run students_training.py to train a set of M=3 students against the teacher network. The training of the students is done on an anomaly-free dataset. We expect them to generalize poorly in images containing anomalies
cd src
python3 students_training.py carpet
  • Run anomaly_detection.py to obtain an anomaly map for each image of the test set. An anomaly map is computed using the variance of Students predictions and the error between Students predictions and Teacher.
cd src
python3 anomaly_detection.py carpet

Results

alt text alt text

And more results are available under /result folder

Expected folder structure

├── data
│   ├── carpet
│   └── hazelnut
├── docs
│   ├── 9245_FastCNNFeature_BMVC.pdf
│   ├── anomaly_detection.pdf
│   └── anomaly_detection_summary.pdf
├── model
│   ├── carpet
│   └── hazelnut
├── mvtec_dataset.py
├── mvtec_dataset.sh
├── README.md
├── results
│   ├── anomaly_carpet_res1.png
│   ├── anomaly_carpet_res2.png
│   ├── anomaly_carpet_res3.png
│   ├── anomaly_carpet_res4.png
│   ├── anomaly_hazelnul_res2.png
│   └── anomaly_hazelnut_res1.png
└── src
├── AnomalyDataset.py
├── anomaly_detection.py
├── AnomalyNet.py
├── AnomalyResnet18.py
├── ExtendedAnomalyNet.py
├── FDFEAnomalyNet.py
├── FDFE.py
├── resnet18_training.py
├── students_training.py
├── teacher_training.py
└── utils.py

References

Original paper

Dataset

Fast Dense Feature Extraction

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].