Giter Club home page Giter Club logo

embarrassingly-simple-zero-shot-learning's Introduction

Embarrsingly simple zero-shot learning

This is the implementation of the paper "An embarrassingly simple approach to zero-shot learning." (EsZsl) ICML, [pdf].

The file demo_eszsl is a jupyter notebook which contains a walk through of EsZsl.

Dataset

The dataset splits can be downloaded here, please download the Proposed Split and place it in the same folder.

Find additional details about the dataset in the README.md of the Proposed split.

Training and Testing

If you want to skip the demo and just run training and testing for different dataset splits use:

python main.py --dataset SUN --dataset_path xlsa17/data/ --alpha 3 --gamma 1

Setting the hyperparameters alpha and gamma is optional. If the values are not given, the code will evaluate on the train and validation set to find the best hyperparameters.

Results

This version does not have the kernel implementation used in the paper. Hence the results fluctuate by a margin of 1-4%.

The results are taken from the paper Zero-Shot Learning - A Comprehensive Evaluation of the Good, the Bad and the Ugly and are evaluated for features extracted from ResNet-50 for the Proposed split.

Dataset Paper - (top-1 accuracy in %) Respository Results Hyper-params(trainval & test)
CUB 53.9 51.31 Alpha=2, Gamma=0
AWA1 58.2 56.19 Alpha=3, Gamma=0
AWA2 58.6 54.50 Alpha=3, Gamma=0
aPY 38.3 38.47 Alpha=3, Gamma=-1
SUN 54.5 55.62 Alpha=2, Gamma=2

References

If this repository was useful for your research, please cite.

@misc{chichilicious,
  author = {Bharadwaj, Shrisha},
  title = {embarrsingly-simple-zero-shot-learning},
  year = {2018},
  publisher = {GitHub},
  journal = {GitHub repository},
  howpublished = {\url{https://github.com/chichilicious/embarrsingly-simple-zero-shot-learning}},
}

embarrassingly-simple-zero-shot-learning's People

Contributors

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