Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
yaoyao-liu authored Aug 23, 2019
1 parent 09e8b94 commit 3e4a7d5
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ This repo provides python source code for creating mini-ImageNet dataset from Im

* [About mini-ImageNet](#about-mini-ImageNet)
* [Requirements](#requirements)
* [Installation](#installation)
* [Usage](#usage)
* [Performance](#performance)
* [Acknowledgement](#acknowledgement)
Expand All @@ -28,6 +29,17 @@ The mini-ImageNet dataset was proposed by [Vinyals et al.](http://papers.nips.cc
- opencv-python
- Pillow

### Installation
Install via PyPI:
```bash
pip install miniimagenettools
```

Install via GitHub:
```bash
git clone https://github.com/yaoyao-liu/mini-imagenet-tools.git
```

### Usage
First, you need to download the image source files from [ImageNet website](http://www.image-net.org/challenges/LSVRC/2012/). If you already have it, you may use it directly.
```
Expand Down Expand Up @@ -58,7 +70,7 @@ If you don't want to resize the images, you may set ```--image_resize 0```.

To use the ```MiniImageNetDataLoader``` class:
```python
from mini_imagenet_dataloader import MiniImageNetDataLoader
from miniimagenettools.mini_imagenet_dataloader import MiniImageNetDataLoader

dataloader = MiniImageNetDataLoader(shot_num=5, way_num=5, episode_test_sample_num=15)

Expand Down

0 comments on commit 3e4a7d5

Please sign in to comment.