Giter VIP home page Giter VIP logo

google-open-image-download's People

Contributors

ejlb avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

google-open-image-download's Issues

No row.iteritems()

Thanks for the fix; I see what you did with the UTF-8 chars. However, the new code gives me the following error: AttributeError: 'dict' object has no attribute 'iteritems'. See details below.

python download.py --timeout 10 --sub-dirs 100 --min-dim -1 "S:\Google OpenImages\images_2016_08\train\images.csv" "S:\Google OpenImages\images_2016_08\train\images"

8044 @ 2016-10-06 09:11:05,259 (266) download - DEBUG - Namespace(consumers=5, force=False, input='S:\Google OpenImages\images_2016_08\train\images.csv', min_dim=-1, output='S:\Google OpenImages\images_2016_08\train\images', queue_size=1000, sub_dirs=100, timeout=10.0)
Process Process-1:
Traceback (most recent call last):
File "C:\Python35\lib\multiprocessing\process.py", line 249, in _bootstrap
self.run()
File "C:\Python35\lib\multiprocessing\process.py", line 93, in run
self._target(_self._args, *_self._kwargs)
File "S:\Google OpenImages\download\download.py", line 145, in producer
for row in unicode_dict_reader(f):
File "S:\Google OpenImages\download\download.py", line 58, in unicode_dict_reader
yield {key: unicode(value, 'utf-8') for key, value in row.iteritems()}
AttributeError: 'dict' object has no attribute 'iteritems'

UTF-8 charaters on Windows

Thanks for this script! I am running it on Windows and it seems to dump out when it hits some of the foreign characters in the description (?) column. Consequently, I am only able to download about 90 image files. Any way to make it decode those characters? Or this there another issue?

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.