Skip to content

quick command-line tool for fetching thousands of keyword images for ml training

License

Notifications You must be signed in to change notification settings

chadananda/tf-images

Repository files navigation

tensorflow-image-fetcher -- TensforFlow Keyword Image Grabber

CLI tool for quickly fetching thousands of keyword images for ML training

Gathering up training images is a pain. With this CLI command, you can gather thousands of training images in a minute, organized into folders by keyword.

This was an afternoon project I wrote to help my 7-yr-old learn TensorFlow.js It has not been tested on Windows. Because I already did my time. Pull requests welcome.

To install

npm i -g tensorflow-image-fetcher  --unsafe-perm

Note that --unsafe-perm is required for globally installing 'puppeteer'. This module provides a headless browser, allowing the script to simulate a browser and scrape Google image results.

To Use

After installing globally, cd to any directory and invoke like:

tf-images "dog, cat, mouse, rat"

A tf-images directory will be created with sub-directories dog, cat etc. Each sub-directory will contain hundreds of keyword images.

About

quick command-line tool for fetching thousands of keyword images for ml training

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published