How to Solve NameError: name 'image' is not defined -- keras

Solution: Import the 'image' module

To Solve the error, add the following line to the top of your code.

from keras.preprocessing import image

 

For more information:
Python keras image