Giter VIP home page Giter VIP logo

atol's Introduction

Out-of-distribution Detection Learning with Unreliable Out-of-distribution Sources

This repo contains the sample code of our proposed ATOL in our paper: Out-of-distribution Detection Learning with Unreliable Out-of-distribution Sources (NeurIPS 2023).

Required Packages

The following packages are required to be installed:

All of our experiments are conducted on NVIDIA Tesla A100 GPUs with Python 3.8, PyTorch 1.11, CUDA 12.0 and Torchvision 0.13.

Pretrained Models

For CIFAR-10/CIFAR-100, pretrained WRN models and data-generative models are provided in folder

./ckpt/

Datasets

Please download the datasets in folder

./../data/

CIFAR-10/100 as ID dataset

Test OOD Datasets

Fine-tuning and Testing

To train the ATOL model on CIFAR and ImageNet benckmarks, simply run:

  • CIFAR-10
python atol.py --dataset=cifar10 -b=256 -lr=0.005 --mean=5 --std=0.1 --ood_space_size=4 --trade_off=1
  • CIFAR-100
python atol.py --dataset=cifar100 -b=256 -lr=0.04 --mean=1.2 --std=0.5 --ood_space_size=4 --trade_off=5

Results

The key results on CIFAR benchmarks are listed in the following table.

Methods CIFAR-10 CIFAR-10 CIFAR-100 CIFAR-100
FPR95 AUROC FRP95 AUROC
BoundaryGAN 55.60 86.46 76.72 75.79
ConfGAN 31.57 93.01 74.86 77.67
ManifoldGAN 26.68 94.09 73.54 77.40
G2D 31.83 91.74 70.73 79.03
CMG 39.83 92.83 79.60 77.51
ATOL 14.66 97.05 55.22 87.24

Citation

If you find our work useful, please kindly cite our paper.

@inproceedings{
zheng2023atol,
title={Out-of-distribution Detection Learning with Unreliable Out-of-distribution Sources},
author={Haotian Zheng and Qizhou Wang and Zhen Fang and Xiaobo Xia and Feng Liu and Tongliang Liu and Bo Han},
booktitle={NeurIPS},
year={2023},
url={https://openreview.net/forum?id=87Qnneer8l}
}

atol's People

Contributors

qizhouwang avatar

Stargazers

hushuguo avatar Xiaobo Xia avatar  avatar Ling-Hao CHEN avatar Haotian Zheng avatar

Watchers

Feng Liu avatar Shadow avatar Bo Han avatar Haotian Zheng avatar

Forkers

hao-tian-zheng

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.