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.


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


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

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


$ pip install -r requirements.txt
$ python 


Special thanks to @sachinravi14 for their Torch implementation. I intend to replicate their code using Pytorch. More details at


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


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