How to Solve NameError: name 'ImageDataGenerator' is not defined -- tensorflow

Solution: Import the 'ImageDataGenerator' module

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

from tensorflow.keras.preprocessing.image import ImageDataGenerator

 

For more information:
Python tensorflow ImageDataGenerator