{ "info": { "author": "Michael Smith", "author_email": "michael@spinda.net", "bugtrack_url": null, "classifiers": [], "description": "imagenetscraper\n===============\n\n\n\nCommand-line utility for downloading all thumbnail images from an ImageNet_\nsynset, optionally rescaling to a different resolution.\n\nUsage\n-----\n\n::\n\n Usage: imagenetscraper [OPTIONS] SYNSET_ID [OUTPUT_DIR]\n\n Options:\n -c, --concurrency INTEGER Number of concurrent downloads (default: 8).\n -s, --size WIDTH,HEIGHT If specified, images will be rescaled to the\n given size.\n -q, --quiet Suppress progress output.\n -h, --help Show this message and exit.\n --version Show the version and exit.\n\nIf the URL of a synset page looks like:\n\n::\n\n http://image-net.org/synset?wnid=n00000000\n ^^^^^^^^^\n SYNSET_ID\n\n``SYNSET_ID`` is the ``n00000000`` part. For example, for the \"person,\nindividual, someone, somebody, mortal, soul\" synset at\nhttp://image-net.org/synset?wnid=n00007846, the corresponding synset id is\n``n00007846``.\n\nThe default output directory (``OUTPUT_DIR``) is the current directory.\n\nExamples\n********\n\nTo download all thumbnail imagess from the synset mentioned above to the\ndirectory \"person_images\", run:\n\n::\n\n imagenetscraper n00007846 person_images\n\nTo do the same, but with each thumbnail image rescaled to a width of 256 and a\nheight of 128, add ``--size 256,128``:\n\n::\n\n imagenetscraper n00007846 person_images --size 256,128\n\nTo run in \"quiet mode\", suppressing progress output, add ``--quiet``:\n\n::\n\n imagenetscraper n00007846 person_images --size 256,128 --quiet\n\nBy default, imagenetscraper will download 8 images at once. To change this, use\n``--concurrency``:\n\n::\n\n imagenetscraper n00007846 person_images --size 256,128 --concurrency 4\n\nInstall\n-------\n\n1) Install Python 3, pip, and a development version of libjpeg. imagenetscraper\n is tested with Python 3.4-3.7 and libjpeg-turbo 8.\n\n ::\n\n sudo apt-get install python3 python3-pip libjpeg-turbo8-dev\n\n2) Download and install imagenetscraper with pip.\n\n ::\n\n sudo -H pip3 install imagenetscraper\n\nCitation\n--------\n\nIf this tool helped with your research, a citation would be appreciated:\n\n::\n\n @Misc{imagenetscraper,\n author = {Michael Smith},\n title = {imagenetscraper: Bulk-download thumbnails from ImageNet synsets},\n howpublished = {\\url{https://github.com/spinda/imagenetscraper}},\n year = {2017}\n }\n\nTesting\n-------\n\nTo run unit tests, use:\n\n::\n\n python3 setup.py test\n\nLicense\n-------\n\nCopyright (C) 2017-2018 Michael Smith \n\nThis program is free software: you can redistribute it and/or modify it under\nthe terms of the GNU Affero General Public License as published by the Free\nSoftware Foundation, either version 3 of the License, or (at your option) any\nlater version.\n\nThis program is distributed in the hope that it will be useful, but WITHOUT\nANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS\nFOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more\ndetails.\n\nYou should have received a copy of the GNU Affero General Public License along\nwith this program. If not, see .\n\n.. _ImageNet: http://image-net.org/\n\n.. |pypi| image:: https://img.shields.io/pypi/v/imagenetscraper.svg\n :alt: PyPI\n :target: https://pypi.python.org/pypi/imagenetscraper\n.. |travis| image:: https://img.shields.io/travis/spinda/imagenetscraper/master.svg\n :alt: Build Status\n :target: https://travis-ci.org/spinda/imagenetscraper", "description_content_type": "", "docs_url": null, "download_url": "https://github.com/spinda/imagenetscraper/archive/1.0.1.tar.gz", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/spinda/imagenetscraper", "keywords": "imagenet,synset,scraper,download,ml", "license": "AGPLv3", "maintainer": "", "maintainer_email": "", "name": "imagenetscraper", "package_url": "https://pypi.org/project/imagenetscraper/", "platform": "", "project_url": "https://pypi.org/project/imagenetscraper/", "project_urls": { "Download": "https://github.com/spinda/imagenetscraper/archive/1.0.1.tar.gz", "Homepage": "https://github.com/spinda/imagenetscraper" }, "release_url": "https://pypi.org/project/imagenetscraper/1.0.1/", "requires_dist": null, "requires_python": "", "summary": "Bulk-download all thumbnails from an ImageNet synset, with optional rescaling", "version": "1.0.1" }, "last_serial": 4442542, "releases": { "1.0": [ { "comment_text": "", "digests": { "md5": "511fec20b488c958761a8222c60cfdc3", "sha256": "a07593b9fb57ee375bca596ffbf2d2bd16981b4b0259c07e66b8f0c5f9e4d73a" }, "downloads": -1, "filename": "imagenetscraper-1.0.tar.gz", "has_sig": true, "md5_digest": "511fec20b488c958761a8222c60cfdc3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 17928, "upload_time": "2017-04-04T22:58:00", "url": "https://files.pythonhosted.org/packages/ac/d0/a4ca65ed9f83b8d61c3057dce192defe1b86ceafcd4715905c9d1b416f44/imagenetscraper-1.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "374e06bbfe2affe05a8863f37bbfc950", "sha256": "9a59a1c84fcf02cd36c06388f6b858abfece6f76e8503d81cb8b691ba5280598" }, "downloads": -1, "filename": "imagenetscraper-1.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "374e06bbfe2affe05a8863f37bbfc950", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 17574, "upload_time": "2018-11-01T22:42:08", "url": "https://files.pythonhosted.org/packages/12/f3/cd60374c220c2149ec50245be50d0a3d1a4fa176a4244e8d498b596e4c4a/imagenetscraper-1.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "b05c57d8d2383ffe583c4197d35739c6", "sha256": "8db85559f9a6ac97c68b56720d63b30e4b1fcbbead4dcec7ce7b6a58c45cf105" }, "downloads": -1, "filename": "imagenetscraper-1.0.1.tar.gz", "has_sig": false, "md5_digest": "b05c57d8d2383ffe583c4197d35739c6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16469, "upload_time": "2018-11-01T22:41:49", "url": "https://files.pythonhosted.org/packages/8a/d4/e72482f6ca7394e2986ca2cc661e22352f6f319741eaa37dad531fb66702/imagenetscraper-1.0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "374e06bbfe2affe05a8863f37bbfc950", "sha256": "9a59a1c84fcf02cd36c06388f6b858abfece6f76e8503d81cb8b691ba5280598" }, "downloads": -1, "filename": "imagenetscraper-1.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "374e06bbfe2affe05a8863f37bbfc950", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 17574, "upload_time": "2018-11-01T22:42:08", "url": "https://files.pythonhosted.org/packages/12/f3/cd60374c220c2149ec50245be50d0a3d1a4fa176a4244e8d498b596e4c4a/imagenetscraper-1.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "b05c57d8d2383ffe583c4197d35739c6", "sha256": "8db85559f9a6ac97c68b56720d63b30e4b1fcbbead4dcec7ce7b6a58c45cf105" }, "downloads": -1, "filename": "imagenetscraper-1.0.1.tar.gz", "has_sig": false, "md5_digest": "b05c57d8d2383ffe583c4197d35739c6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16469, "upload_time": "2018-11-01T22:41:49", "url": "https://files.pythonhosted.org/packages/8a/d4/e72482f6ca7394e2986ca2cc661e22352f6f319741eaa37dad531fb66702/imagenetscraper-1.0.1.tar.gz" } ] }