# MatchingNetworks **Repository Path**: zhangming8/MatchingNetworks ## Basic Information - **Project Name**: MatchingNetworks - **Description**: https://github.com/gitabcworld/MatchingNetworks - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2022-09-07 - **Last Updated**: 2024-12-24 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Matching Networks for One Shot Learning This repo provides a Pytorch implementation fo the [Matching Networks for One Shot Learning](http://papers.nips.cc/paper/6385-matching-networks-for-one-shot-learning.pdf) paper. ## Installation of pytorch The experiments needs installing [Pytorch](http://pytorch.org/) ## Data For the Omniglot dataset the download of the dataset is automatic. For the miniImageNet you need to download the ImageNet dataset and execute the script utils.create_miniImagenet.py changing the lines: ``` pathImageNet = '/ILSVRC2012_img_train' pathminiImageNet = '/miniImagenet/' ``` And also change the main file option.py line or pass it by command line arguments: ``` parser.add_argument('--dataroot', type=str, default='/miniImagenet/',help='path to dataset') ``` ## Installation $ pip install -r requirements.txt $ python mainOmniglot.py `#Code for OmniGlot` $ python mainMiniImageNet.py `#Code for miniImageNet` ## Acknowledgements Special thanks to https://github.com/zergylord and https://github.com/AntreasAntoniou for their Matching Networks implementation. I intend to use some parts for this implementation. More details at https://github.com/zergylord/oneshot and https://github.com/AntreasAntoniou/MatchingNetworks ## Cite ``` @inproceedings{vinyals2016matching, title={Matching networks for one shot learning}, author={Vinyals, Oriol and Blundell, Charles and Lillicrap, Tim and Wierstra, Daan and others}, booktitle={Advances in Neural Information Processing Systems}, pages={3630--3638}, year={2016} } ``` ## Authors * Albert Berenguel (@aberenguel) [Webpage](https://scholar.google.es/citations?user=HJx2fRsAAAAJ&hl=en)