All Projects → hendrycks → anomaly-seg

hendrycks / anomaly-seg

Licence: MIT license
The Combined Anomalous Object Segmentation (CAOS) Benchmark

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to anomaly-seg

pre-training
Pre-Training Buys Better Robustness and Uncertainty Estimates (ICML 2019)
Stars: ✭ 90 (-21.74%)
Mutual labels:  out-of-distribution-detection, ml-safety
out-of-distribution-detection
The Ultimate Reference for Out of Distribution Detection with Deep Neural Networks
Stars: ✭ 117 (+1.74%)
Mutual labels:  anomaly-detection, out-of-distribution-detection
Matrixprofile
A Python 3 library making time series data mining tasks, utilizing matrix profile algorithms, accessible to everyone.
Stars: ✭ 141 (+22.61%)
Mutual labels:  segmentation, anomaly-detection
FSSD OoD Detection
Feature Space Singularity for Out-of-Distribution Detection. (SafeAI 2021)
Stars: ✭ 66 (-42.61%)
Mutual labels:  anomaly-detection, out-of-distribution-detection
Feature-Engineering-for-Fraud-Detection
Implementation of feature engineering from Feature engineering strategies for credit card fraud
Stars: ✭ 31 (-73.04%)
Mutual labels:  anomaly-detection
ETCI-2021-Competition-on-Flood-Detection
Experiments on Flood Segmentation on Sentinel-1 SAR Imagery with Cyclical Pseudo Labeling and Noisy Student Training
Stars: ✭ 102 (-11.3%)
Mutual labels:  segmentation
SemanticSegmentation-Libtorch
Libtorch Examples
Stars: ✭ 38 (-66.96%)
Mutual labels:  segmentation
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 (+952.17%)
Mutual labels:  anomaly-detection
pixel-decoder
A tool for running deep learning algorithms for semantic segmentation with satellite imagery
Stars: ✭ 68 (-40.87%)
Mutual labels:  segmentation
tilitools
[ti]ny [li]ttle machine learning [tool]box - Machine learning, anomaly detection, one-class classification, and structured output prediction
Stars: ✭ 40 (-65.22%)
Mutual labels:  anomaly-detection
medSeg
Medical Image Segmentation Toolkit based on PaddlePaddle - 基于paddle的医学影像分割框架
Stars: ✭ 88 (-23.48%)
Mutual labels:  segmentation
NeuTu
Software package for neuron reconstruction and visualization
Stars: ✭ 34 (-70.43%)
Mutual labels:  segmentation
RTFM
Official code for 'Weakly-supervised Video Anomaly Detection with Robust Temporal Feature Magnitude Learning' [ICCV 2021]
Stars: ✭ 216 (+87.83%)
Mutual labels:  anomaly-detection
AdverseDrive
Attacking Vision based Perception in End-to-end Autonomous Driving Models
Stars: ✭ 24 (-79.13%)
Mutual labels:  carla-simulator
Skin-Cancer-Segmentation
Classification and Segmentation with Mask-RCNN of Skin Cancer using ISIC dataset
Stars: ✭ 61 (-46.96%)
Mutual labels:  segmentation
Linear-Attention-Mechanism
Attention mechanism
Stars: ✭ 27 (-76.52%)
Mutual labels:  segmentation
pyRANSAC-3D
A python tool for fitting primitives 3D shapes in point clouds using RANSAC algorithm
Stars: ✭ 253 (+120%)
Mutual labels:  segmentation
U-Time
U-Time: A Fully Convolutional Network for Time Series Segmentation
Stars: ✭ 156 (+35.65%)
Mutual labels:  segmentation
imgcrop
Simple image augmentation library focusing on random geometric cropping
Stars: ✭ 27 (-76.52%)
Mutual labels:  segmentation
segDGM CNN
Segment Deep Gray Matter on QSM images using 3D CNN
Stars: ✭ 16 (-86.09%)
Mutual labels:  segmentation

Scaling OOD Detection

This repository contains the Species dataset, the StreetHazards dataset, and some code for the paper Scaling Out-of-Distribution Detection for Real-World Settings.

Download the Species OOD detection dataset here.

Download the StreetHazards OOD segmentation dataset here.

The optional StreetHazards training set is available here. Also, the BDD-Anomaly dataset is sourced from the BDD100K dataset. Code for the multi-label out-of-distribution detection experiments is available in this repository.

How to use this repository

git clone --recursive https://github.com/hendrycks/anomaly-seg

cd anomaly-seg
mv defaults.py semantic-segmentation-pytorch/config
mv anom_utils.py semantic-segmentation-pytorch/
mv dataset.py semantic-segmentation-pytorch/
mv eval_ood.py semantic-segmentation-pytorch/
mv create_dataset.py semantic-segmentation-pytorch/
cd semantic-segmentation-pytorch

# Place the above download in semantic-segmentation-pytorch/data/
cd data/
tar -xvf streethazards_train.tar
cd ..
python3 create_dataset.py

# Train pspnet or another model on our dataset
python3 train.py

# To evaluate the model on out of distribution test set
python3 eval_ood.py DATASET.list_val ./data/test.odgt

Note: to run on single gpu please refer to this issue#3.

To evaluate the model performance using a CRF with our code please install

pip install pydensecrf

The source package is from https://github.com/lucasb-eyer/pydensecrf

Evaluation with BDD100K

We cannot reshare the images from BDD100K so please visit BDD website to download them. The images should be from the 10K set of images that they released.

We have shared the labels in the folder called seg and part of the process by which we created these labels in create_bdd_dataset.py. To be able to fully utilize these labels one just needs to pattern match the label ids to the image id (they're the same) from our labels to the BDD images.

Pretrained model is availble at this Google drive link.

Citation

If you find this useful in your research, please consider citing:

@article{hendrycks2019anomalyseg,
  title={Scaling Out-of-Distribution Detection for Real-World Settings},
  author={Hendrycks, Dan and Basart, Steven and Mazeika, Mantas and Zou, Andy and Kwon, Joe and Mostajabi, Mohammadreza and Steinhardt, Jacob and Song, Dawn},
  journal={ICML},
  year={2022}
}
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].