Given a set of keywords, search the Flickr API, and download the images. Organize them into training, validation and test sets so they can be used for machine learning.
- Edit
config.json.default
to include your Flickr API key/secret (renameconfig.json
) - Edit
keywords.txt
to choose what you want to download (eg: cats, dogs) - Run via
python flickr_to_dataset.py --create
Images will be stored under /data/
Example: /data/train/dogs/
Example: /data/train/bees/
Thanks Phil Adams for the original flickr code