Python pytorch optimization optimization-algorithms
Need help with FewShotLearning?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.
gitabcworld

Description

Pytorch implementation of the paper "Optimization as a Model for Few-Shot Learning"

215 Stars 46 Forks MIT License 7 Commits 9 Opened issues

Services available

Need anything else?

Optimization as a Model for Few-Shot Learning

This repo provides a Pytorch implementation for the Optimization as a Model for Few-Shot Learning paper.

Installation of pytorch

The experiments needs installing Pytorch

Data

For the miniImageNet you need to download the ImageNet dataset and execute the script utils.createminiImagenet.py changing the lines: ``` pathImageNet = '<pathtodownloadedImageNet>/ILSVRC2012imgtrain' pathminiImageNet = '/miniImagenet/'

And also change the main file option.py line or pass it by command line arguments:
parser.addargument('--dataroot', type=str, default='<pathtosaveMiniImageNet>/miniImagenet/',help='path to dataset') ```

Installation

$ pip install -r requirements.txt
$ python main.py 

Acknowledgements

Special thanks to @sachinravi14 for their Torch implementation. I intend to replicate their code using Pytorch. More details at https://github.com/twitter/meta-learning-lstm

Cite

@inproceedings{Sachin2017,
  title={Optimization as a model for few-shot learning},
  author={Ravi, Sachin and Larochelle, Hugo},
  booktitle={In International Conference on Learning Representations (ICLR)},
  year={2017}
}

Authors

  • Albert Berenguel (@aberenguel) Webpage

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.