Giter VIP home page Giter VIP logo

odin_keras_version's Introduction

ODIN_keras_version

Out-of-distribution을 검출하는 방법론 중 하나인 odin(pytorch)을 keras화 하였습니다.

ODIN

out-of-distribution을 검출하는 Odin의 장점은 pretrained된 model을 그대로 사용할 수 있다는 점입니다.

기존의 pretrained model에 추가적으로 T scaling과 perturbation을 적용하여,

in-distribution과 out-of-distribution을 구분할 수 있습니다.

reference : https://github.com/facebookresearch/odin

result

아래 그래프를 보면, ROC커브가 개선되었음을 알 수 있다.

(Temperature=1000, Magnitude=0.0014)

graph

  • var 는 activation map vaule의 분산을 기준으로한 검출방법론입니다.
  • max 는 activation map value의 max를 기준으로한 검출방법론입니다.

실험 상세 내용-1

  • In-distribution dataset: CIFAR-10

  • Out-of-distribution dataset: Tiny-ImageNet (crop)

    Tables Baseline ODIN
    FPR at TPR 95%: 14.9% 2.1%
    Detection error: 8.3% 3.8%
    AUROC: 97.4% 98.6%
    AUPR In: 97.8% 99.0%
    AUPR Out: 97.1% 99.7%

실험 상세 내용-2

  • In-distribution dataset: CIFAR-10

  • Out-of-distribution dataset: CIFAR-100

    Tables Baseline ODIN
    FPR at TPR 95%: 24.3% % 6.7%
    Detection error: 12.0% 6.9%
    AUROC: 94.6% 94.8%
    AUPR In: 95.0% 95.3%
    AUPR Out: 94.9% 99.3%

    Activation Map

    in-distribution

    image

    out-of-distribution

    image

    out-of-distribution의 activation map은 in-distribution과 큰 차이를 보이고 있다.

    상대적으로 분산된 activation map을 가지는데 이는 classification을 할 때, 중요하게 생각하는 포인트를 못 잡아내는 것으로 해석할 수 있다.

odin_keras_version's People

Contributors

rroundtable avatar

Watchers

James Cloos 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.