title: How to use flow_from_directoey() for sub-directories?
body: <p>My directory looks like:</p>
  
  <pre><code>-train-&gt;class-1-&gt;images
                 -&gt;masks
        -&gt;class-2-&gt;images
                 -&gt;masks
  data_generator = ImageDataGenerator()
  train_generator = data_generator.flow_from_directory(r'C:\Users\user\project-system\New folder\train\\',target_size=(image_size,image_size),batch_size=batch_size,class_mode='categorical')
  
  </code></pre>
  
  <p>How do I define ImageDataGenerator().flow_from_directoey()? I want to load only masks from class-1 and class-2.</p>