Giter Club home page Giter Club logo

pixplz's Introduction

pixplz

Fetch sample images for a search term, without fuss.

tty

Install

pip install pixplz

For faster results, but with more dependencies, you can do:

pip install pixplz[parallel]

If you have a version of ssl that is giving warnings, and they annoy you, do:

pip install requests[security]

Options

$ pixplz koala
5 images downloaded (1 duds skipped)
$ ls
koala_000000.jpg  koala_000002.jpg  koala_000004.jpg
koala_000001.jpg  koala_000003.jpg
$ pixplz -h
usage: pixplz [-h] [--prefix PREFIX] [--format FORMAT] [--parallel PARALLEL]
              [--count COUNT]
              term [term ...]

positional arguments:
  term                 search term

optional arguments:
  -h, --help           show this help message and exit
  --prefix PREFIX      prefix for downloaded images, _NNNNNN.jpg will be added
  --format FORMAT      format for naming images, for example 'foo/bar%06d.png'
  --parallel PARALLEL  number of images to load in parallel (requires
                       pixplz[parallel])
  --count COUNT        target number of images to load (fewer may be loaded)

Source of images

Currently, this grabs a few images from ddg to use as casual training data. After poking around for terms of service, I still don't know how ddg feels about this. Will switch to other sources of public image data as needed.

Clearly, images from a search engine are not going to be solid ground truth. I use pixplz when near enough is good enough. For example, recently I used an amalgam of text, slogan, logo against wall, sky, night when training a network for billboard segmentation.

Now with audio!

mp3plz cooking

You now have some mp3s of cooking sounds, from freesound.org, for use as casual training data. I don't know how freesound feels about this. Will switch to other sources of public audio data as needed.

pixplz's People

Contributors

paulfitz avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

pixplz's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.