All Projects → talreiss → Mean-Shifted-Anomaly-Detection

talreiss / Mean-Shifted-Anomaly-Detection

Licence: other
Mean-Shifted Contrastive Loss for Anomaly Detection

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Mean-Shifted-Anomaly-Detection

anomagram
Interactive Visualization to Build, Train and Test an Autoencoder with Tensorflow.js
Stars: ✭ 152 (+149.18%)
Mutual labels:  anomaly-detection
CVAE-AnomalyDetection-PyTorch
Example of Anomaly Detection using Convolutional Variational Auto-Encoder (CVAE)
Stars: ✭ 23 (-62.3%)
Mutual labels:  anomaly-detection
RTFM
Official code for 'Weakly-supervised Video Anomaly Detection with Robust Temporal Feature Magnitude Learning' [ICCV 2021]
Stars: ✭ 216 (+254.1%)
Mutual labels:  anomaly-detection
CCD
Code for 'Constrained Contrastive Distribution Learning for Unsupervised Anomaly Detection and Localisation in Medical Images' [MICCAI 2021]
Stars: ✭ 30 (-50.82%)
Mutual labels:  anomaly-detection
ailia-models
The collection of pre-trained, state-of-the-art AI models for ailia SDK
Stars: ✭ 1,102 (+1706.56%)
Mutual labels:  anomaly-detection
A-Hierarchical-Transformation-Discriminating-Generative-Model-for-Few-Shot-Anomaly-Detection
Official pytorch implementation of the paper: "A Hierarchical Transformation-Discriminating Generative Model for Few Shot Anomaly Detection"
Stars: ✭ 42 (-31.15%)
Mutual labels:  anomaly-detection
ocsvm-anomaly-detection
anomaly detection by one-class SVM
Stars: ✭ 66 (+8.2%)
Mutual labels:  anomaly-detection
kaspersky hackathon
https://events.kaspersky.com/hackathon/
Stars: ✭ 25 (-59.02%)
Mutual labels:  anomaly-detection
traffic
A quick and dirty vehicle speed detector using video + anomaly detection
Stars: ✭ 21 (-65.57%)
Mutual labels:  anomaly-detection
Feature-Engineering-for-Fraud-Detection
Implementation of feature engineering from Feature engineering strategies for credit card fraud
Stars: ✭ 31 (-49.18%)
Mutual labels:  anomaly-detection
sherlock
Sherlock is an anomaly detection service built on top of Druid
Stars: ✭ 137 (+124.59%)
Mutual labels:  anomaly-detection
deviation-network-image
Official PyTorch implementation of the paper “Explainable Deep Few-shot Anomaly Detection with Deviation Networks”, weakly/partially supervised anomaly detection, few-shot anomaly detection, image defect detection.
Stars: ✭ 47 (-22.95%)
Mutual labels:  anomaly-detection
PANDA
PANDA: Adapting Pretrained Features for Anomaly Detection and Segmentation (CVPR 2021)
Stars: ✭ 64 (+4.92%)
Mutual labels:  anomaly-detection
msda
Library for multi-dimensional, multi-sensor, uni/multivariate time series data analysis, unsupervised feature selection, unsupervised deep anomaly detection, and prototype of explainable AI for anomaly detector
Stars: ✭ 80 (+31.15%)
Mutual labels:  anomaly-detection
tilitools
[ti]ny [li]ttle machine learning [tool]box - Machine learning, anomaly detection, one-class classification, and structured output prediction
Stars: ✭ 40 (-34.43%)
Mutual labels:  anomaly-detection
Bagel
IPCCC 2018: Robust and Unsupervised KPI Anomaly Detection Based on Conditional Variational Autoencoder
Stars: ✭ 45 (-26.23%)
Mutual labels:  anomaly-detection
XGBOD
Supplementary material for IJCNN paper "XGBOD: Improving Supervised Outlier Detection with Unsupervised Representation Learning"
Stars: ✭ 59 (-3.28%)
Mutual labels:  anomaly-detection
FARED for Anomaly Detection
Official source code of "Fast Adaptive RNN Encoder-Decoder for Anomaly Detection in SMD Assembly Machine"
Stars: ✭ 14 (-77.05%)
Mutual labels:  anomaly-detection
anomaly-seg
The Combined Anomalous Object Segmentation (CAOS) Benchmark
Stars: ✭ 115 (+88.52%)
Mutual labels:  anomaly-detection
anomalib
An anomaly detection library comprising state-of-the-art algorithms and features such as experiment management, hyper-parameter optimization, and edge inference.
Stars: ✭ 1,210 (+1883.61%)
Mutual labels:  anomaly-detection

Mean-Shifted Contrastive Loss for Anomaly Detection

Official PyTorch implementation of “Mean-Shifted Contrastive Loss for Anomaly Detection”.

Virtual Environment

Use the following commands:

cd path-to-directory
virtualenv venv --python python3
source venv/bin/activate
pip install -r requirements.txt

Experiments

To replicate the results on CIFAR-10 for a specific normal class:

python main.py --dataset=cifar10 --label=n

Where n indicates the id of the normal class.

To replicate the results on CIFAR-10 with ResNet18 for a specific normal class:

python main.py --dataset=cifar10 --label=n --backbone=18

Where n indicates the id of the normal class.

Use the --angular flag to jointly optimize the mean-shifted contrastive loss and the angular center loss.

To run experiments on different datasets, please set the path in utils.py to the desired dataset.

Citation

If you find this useful, please cite our paper:

@article{reiss2021mean,
  title={Mean-Shifted Contrastive Loss for Anomaly Detection},
  author={Reiss, Tal and Hoshen, Yedid},
  journal={arXiv preprint arXiv:2106.03844},
  year={2021}
}
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].