This is a simple MAML implementation based on original paper and previous open-source implementations (listed in the references). This can be used as a reference for MAML beginners, which is well annotated and easy to fine-tune.
You can take a look at some running results of this implementation at the following pages.
To run this code, you can follow the instructions below.
- Clone this repo.
git clone https://github.com/Yifei20/MAML-PyTorch.git
cd MAML-PyTorch
- Download the Omniglot dataset.
mkdir data
cd data
wget https://github.com/Yifei20/MAML-PyTorch/releases/download/dataset/Omniglot.zip
unzip Omniglot.zip
- Run the code directly in the notebook, you can adjust the hyperparameter if you want.