title: Keras: Visualize ImageDataGenerator Output
body: <p>I would like to see what my ImageDataGenerator yields to my network.</p>
  
  <p><strong>Edit:</strong><br>
  removed the channel_shift_range, accidently left it in the code</p>
  
  <h2>Generator</h2>
  
  <pre><code>genNorm = ImageDataGenerator(rotation_range=10, width_shift_range=0.1, 
         height_shift_range=0.1, zoom_range=0.1, horizontal_flip=True)
  </code></pre>
  
  <h2>Get Batches</h2>
  
  <pre><code>batches = genNorm.flow_from_directory(path+'train', target_size=(224,224),
        class_mode='categorical', batch_size=64)
  
  x_batch, y_batch = next(batches)
  </code></pre>
  
  <h2>Plot Images</h2>
  
  <pre><code>for i in range (0,32):
      image = x_batch[i]
      plt.imshow(image.transpose(2,1,0))
      plt.show()
  </code></pre>
  
  <h2>Result</h2>
  
  <p><a href="https://i.stack.imgur.com/zufrN.png" rel="noreferrer">Generator Output</a></p>
  
  <p>Is this normal or am I doing something wrong here?</p>