'What is the difference between ImageDataGenerator.flow() and ImageDataGenerator.flow_from_directory()?

datagen = ImageDataGenerator(rotation_range = 20, zoom_range = 15, width_shift_range=0.2, height_shift_range=0.2, shear_range=0.15, horizontal_flip=True, vertical_flip=True, fill_mode='nearest')

What is the difference between datagen.flow() and datagen.flow_from_directory?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source