Giter Club home page Giter Club logo

detecting_semantic_anomalies's Introduction

Detecting semantic anomalies

Code to accompany [Detecting semantic anomalies, AAAI 2020] (https://arxiv.org/abs/1908.04388).

The rotation folder contains code for the rotation experiments, and the cpc folder for CPC. The dataloaders for the Imagenet subsets are based off of a lab-internal format of ILSVRC2012, so you'd have to swap out my Fuel-based dataloader for yours.

Requirements and Usage

Requirements are Python 2.7, TensorFlow v1.13.1 (I've used the wheel on my cluster), Numpy, Scipy, Scikit-Learn, Matplotlib.

I've run most experiments with 4 GPUs.

The commands for running rotation experiments are

python main.py -d cifar10 -dc 160 -bs 128 -ngpu 4 -dr 0.3 -c 0 [-r]
python main.py -d stl10 -dc 64 -bs 64 -ngpu 4 -dr 0.3 -c 0 [-r]

where -c denotes the held out class, and -r would augment with rotation-prediction.

Similar usage applies for CPC, with -s for adding CPC as a task.

python main.py -d dog -c 0 [-s]

Citation

BibTex:

@proceedings{ahmed2019semantic,
  title={Detecting semantic anomalies},  
  author={Ahmed, Faruk and Courville, Aaron},  
  booktitle={Proceedings of 34th AAAI Conference on Artificial Intelligence},  
  year={2020}  
}

detecting_semantic_anomalies's People

Stargazers

Wenyu Jiang avatar yuyaya-foifoi avatar  avatar David Zimmerer avatar Ben Cottier avatar

Watchers

Faruk Ahmed avatar paper2code - bot avatar

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.