Code Monkey home page Code Monkey logo

adshift's Introduction

ICCV2023 - Anomaly Detection under Distribution Shift

Official PyTorch implementation of the ICCV'23 paper “Anomaly Detection under Distribution Shift”

Environment

Create suitable conda environment:

conda env create -f environment.yml

Dataset

1. Download dataset:

-MNIST_grey: https://www.kaggle.com/datasets/jidhumohan/mnist-png
-MNIST_M: https://www.kaggle.com/datasets/aquibiqbal/mnistm
-PACS: https://www.kaggle.com/datasets/nickfratto/pacs-dataset
-MVTEC: https://www.mvtec.com/company/research/datasets/mvtec-ad
-CIFAR-10: https://www.kaggle.com/datasets/swaroopkml/cifar10-pngs-in-folders

2. Generate corrupted test set for MVTEC and CIFAR-10

To generate currupted data for MVTEC:

python generate_corrupted_mvtec.py

To generate currupted data for CIFAR-10:

python generate_corrupted_cifar10.py

DINL (for training phase)

To train the model, please run the corresponding file train_namedataset_DINL.py
For example, to train DINL for PACS:

python train_PACS_DINL.py

ATTA (for inference phase)

Note: change the path to the normal image for each dataset if needed.
To run the inference, please run the corresponding file inference_namedataset_ATTA.py
For example, to use ATTA for PACS:

python inference_PACS_ATTA.py

Citation

The paper is available at ICCV'23 proceedings or arXiv.

Please cite this paper if it helps your research:

@InProceedings{Cao_2023_ICCV,
    author    = {Cao, Tri and Zhu, Jiawen and Pang, Guansong},
    title     = {Anomaly Detection Under Distribution Shift},
    booktitle = {Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV)},
    month     = {October},
    year      = {2023},
    pages     = {6511-6523}
}

adshift's People

Contributors

caothientri2001vn avatar guansongpang avatar

Stargazers

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

Watchers

 avatar

adshift's Issues

code

Hello, when will the code be uploaded?

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.