Skip to content

Commit 562c8b3

Browse files
authored
Update README.md
1 parent a53a2ee commit 562c8b3

File tree

1 file changed

+17
-3
lines changed

1 file changed

+17
-3
lines changed

README.md

+17-3
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,27 @@
1-
# MatchingNetworks Pytorch Implementation
2-
This repo provides code that replicated the results of the Matching Networks for One Shot Learning paper on the Omniglot dataset.
1+
# Matching Networks for One Shot Learning
2+
This repo provides a Pytorch implementation fo the Matching Networks for One Shot Learning paper.
33

44
## Installation of pytorch
55
The experiments needs installing [Pytorch](http://pytorch.org/)
66

7+
## Data
8+
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:
9+
```
10+
pathImageNet = '<path_to_downloaded_ImageNet>/ILSVRC2012_img_train'
11+
pathminiImageNet = '<path_to_save_MiniImageNet>/miniImagenet/'
12+
```
13+
And also change the main file option.py line or pass it by command line arguments:
14+
```
15+
parser.add_argument('--dataroot', type=str, default='<path_to_save_MiniImageNet>/miniImagenet/',help='path to dataset')
16+
```
17+
18+
719
## Installation
820

921
$ pip install -r requirements.txt
10-
$ python main.py
22+
$ python mainOmniglot.py `#Code for OmniGlot`
23+
$ python mainMiniImageNet.py `#Code for miniImageNet`
24+
1125

1226
## Acknowledgements
1327
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

0 commit comments

Comments
 (0)