You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "/home/rainman/git/myresnet/cifar10/PNG-2-CIFAR10/convert-images-to-cifar-format.py", line 42, in
data.append(pix[x,y][color])
TypeError: 'int' object has no attribute 'getitem'
The text was updated successfully, but these errors were encountered:
I think the problem occurs if you have some PNGs in grayscale. Using the original JPEGs as @macma suggested might help, I just added PNG24: before the output image in my resize script so that imagemagick enforces a color PNG.
Traceback (most recent call last):
File "/home/rainman/git/myresnet/cifar10/PNG-2-CIFAR10/convert-images-to-cifar-format.py", line 42, in
data.append(pix[x,y][color])
TypeError: 'int' object has no attribute 'getitem'
The text was updated successfully, but these errors were encountered: