GithubHelp home page GithubHelp logo

ajilim / deepncm Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tmensink/deepncm

0.0 1.0 0.0 1.02 MB

DeepNCM: Deep Nearest Class Mean Classifiers

License: BSD 2-Clause "Simplified" License

Python 8.35% Shell 0.14% Jupyter Notebook 91.51%

deepncm's Introduction

DeepNCM: Deep Nearest Class Means

This software provides DeepNCM models based on the TensFlow Models Official ResNet implementation.

Citation

When using this code, or the ideas of DeepNCM, please cite the following paper (openreview)

@INPROCEEDINGS{guerriero18openreview,
 author = {Samantha Guerriero and Barbara Caputo and Thomas Mensink},
 title = {DeepNCM: Deep Nearest Class Mean Classifiers},
 booktitle = {International Conference on Learning Representations - Workshop (ICLRw)},
 year = {2018},
 }

Dependencies / Notes

DeepNCM is written in python, and follows (as closely as possible) the Tensorflow official ResNet implementation.

  • The code is developed with Python 3.6 and TensorFlow 1.6.0 (with GPU support) on Linux
    • Reported to work also with Python 2.7. For Python 2.7 change resnet_ncm.py, line 113 ncm['method'].casefold() to ncm['method'].lower()
  • Requires TensorFlow Models
    • Included as submodule, so to get the required version, after cloning/getting DeepNCM do
      git submodule update --init
  • For reasons of my convenience, model_dir and data_dir are required to be model_dir = /tmp/deepncm/cifar10_data data_dir = /tmp/deepncm/cifar10_deepncm -- errors might pop-up when other directories are used.
  • The experiments (deepncm_do.sh) uses GNU Parallel for parallelisation (Tange, GNU Parallel - The Command-Line Power Tool, 2011)

Experimental overview on Cifar10/Cifar100

Below are the full experiments, using two learning rates, different condensation (omreset) and decay rates. DeepNCM Experimental Overiew Comparison of the following methods: Softmax (sof), Online Means (onl), Mean Condensation (con), Decay Mean (dec), in the legend the maximum Top-1 accuracy is reported.

The code for the figures above can be found in figs/deepncm_overview.ipynb

Future research (ideas)

  • Current optimiser and learning-rate schedule is optimised for softmax learning.
  • Gradient clipping is now set to (-1.0,1.0), this is not tuned
  • Experiments on larger datasets, e.g., ImageNet
  • Class incremental / Open Set learning

Please contact me when you're interested to collaborate on this!

Copyright (2017-2018)

Thomas Mensink, University of Amsterdam, [email protected]
Some preliminary source code is written by Samantha Guerriero and Thomas Mensink.

deepncm's People

Contributors

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