I\'m extracting some portions of my code that might be relevant to the issue I\'m having:
from PIL import Image import tensorflow as tf data = Image.open(\'
Just posting the comment since it seems to have resolved the issue:
Try converting it to a numpy array:
numpy.asarray(Image.open('1-enhanced.png').convert('L'))