C2 Week 2 - trainning the model takes hours. Reasonable?

The reason for slowness is ImageDataGenerator (see this). Here’s my recommendation:

  1. Use image_dataset_from_directory to iterate on model architecture.
  2. Swap image_dataset_from_directory with ImageDataGenerator after finalizing the model architecture and pay the price once to please the grader.
1 Like