title: datagen.flow_from_directory function
body: <p>I am using fer2013 dataset, and when I am using datagen.flow_from_directory function, it doesn't find all the images from the directory.</p>
  <p>Here's my code</p>
  <pre><code>IMAGE_SIZE = 224
  BATCH_SIZE = 64
  
  train_data_dir = &quot;/content/drive/My Drive/Colab/FER2013/Training&quot;
  validation_data_dir = &quot;/content/drive/My Drive/Colab/FER2013/PublicTest&quot;
  
  
  datagen = tf.keras.preprocessing.image.ImageDataGenerator(
      rescale=1./255, 
      validation_split=0.2)
  
  train_generator = datagen.flow_from_directory(
      train_data_dir,
      target_size=(IMAGE_SIZE, IMAGE_SIZE),
      batch_size=BATCH_SIZE, 
      subset='training')
  
  val_generator = datagen.flow_from_directory(
      validation_data_dir,
      target_size=(IMAGE_SIZE, IMAGE_SIZE),
      batch_size=BATCH_SIZE, 
      subset='validation')
  
  </code></pre>
  <p>Here's the result.</p>
  <pre><code>
  Found 22921 images belonging to 7 classes.
  Found 714 images belonging to 7 classes.
  
  </code></pre>
  <p>I don't have an err per se, but in the directory folder I have 28000+ images and in PublicTest 3000+ so, why it finds me only 22921 and 714 insted of my actual number of images?</p>