gskielian/JPG-PNG-to-MNIST-NN-Format

Support for colored images

kristoffzoghbi opened this issue · 0 comments

Is it possible to convert colored images? When I run the script with colored PNGs I get the following error:

convert-images-to-mnist-format.py
Traceback (most recent call last):
  File "convert-images-to-mnist-format.py", line 35, in <module>
    data_image.append(pixel[y,x])
TypeError: an integer is required

EDIT: I will use this repo