Giter Site home page Giter Site logo

yjingyu / openmax-cifar10 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from takumayagi/openmax-cifar10

0.0 1.0 0.0 25 KB

A simple training/evaluation code of open set recognition using OpenMax (https://arxiv.org/abs/1511.06233)

Python 94.74% Shell 5.26%

openmax-cifar10's Introduction

openmax-cifar10

A simple training/evaluation code of open set recognition using OpenMax (https://arxiv.org/abs/1511.06233).

Base repositories

I slightly modified bc_learning_image (https://github.com/mil-tokyo/bc_learning_image) for the CIFAR10 code.
For OpenMax layer, I re-wrote the code from that of the authors (https://github.com/abhijitbendale/OSDN).

Dependencies

  • Python 3+
  • numpy
  • scipy
  • joblib
  • libmr
  • chainer (v2.0.0+)

Usage

Download dataset

sh scripts/download_dataset.sh

Train CNN

# For model selection
sh scripts/train_val.sh

# For final evaluation
sh scripts/train.sh

Validation

sh scripts/validate_openmax.sh

Evaluation

Below arguments are determined by a rough parameter search.

sh scripts/test_openmax.sh 80 3 0.9

Result

I conducted a simple experiment using CIFAR-10/100 dataset.

  • Training: CIFAR-10 training set
  • Test: CIFAR-10 test set + CIFAR-100 test set
Method CIFAR-10 top-1 (%) CIFAR-10 F1 CIFAR-10/100 top-1 (%) CIFAR-10/100 F1
Softmax (closed setting) 6.23 0.9376 N/A N/A
Softmax + thresholding 8.85 0.851 37.2 0.695
OpenMax 18.0 0.813 21.4 0.792

References

Yuji Tokozume, Yoshitaka Ushiku, Tatsuya Harada. Between-class Learning for Image Classification.
The 31st IEEE Computer Society Conference on Computer Vision and Pattern Recognition (CVPR), 2018.

Meta-Recognition: The Theory and Practice of Recognition Score Analysis
Walter J. Scheirer, Anderson Rocha, Ross J. Micheals, and Terrance E. Boult
IEEE T.PAMI, V. 33, Issue 8, August 2011, pages 1689 - 1695

openmax-cifar10's People

Contributors

takumayagi 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.