Skip to content

Latest commit

 

History

History
 
 

ImageNet_Downloader

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

README.md

logo


Download image data from ImageNet with python.

Usage

How to use example

python example.py <WordnetID> -v

Start download images.

How to use downloader module

Sample code.

import downloader
import os
api = downloader.ImageNet(root=os.getcwd())
api.download(wnid, verbose=True)

Downloader makes directory.

root/  
 ├ img/  
 ├ list/  

If you substitute 'n02112826' for wnid, Downloader changes directory and save images below.

root/  
 ├ img/  
 │ └ n02112826/
 │       └ n02112826_20084.jpg
 │       └ n02112826_20105.jpg
 │       └ ....
 ├ list/  
 │ └ n02112826.txt

WordetID

Check WordnetID.
ImageNet