title: Tensorflow image_dataset_from_directory for input dataset and output dataset
body: <p>I am trying to learn image auto encoding but I can't use input and output images to train the model</p>
  <p>ex:
  input images folder: &quot;.../Pictures/Input&quot;<br/>
  output images folder: &quot;.../Pictures/Output&quot;</p>
  <pre><code>#get input images from data_dir_input
  ds_input = tf.keras.preprocessing.image_dataset_from_directory(
      data_dir_input,
      seed=123,
      image_size=(img_height, img_width),
      label_mode=None,
      batch_size=batch_size)
  
  #get output images from data_dir_output
  ds_output = tf.keras.preprocessing.image_dataset_from_directory(
      data_dir_output,
      seed=123,
      image_size=(img_height, img_width),
      label_mode=None,
      batch_size=batch_size)
  
  # --------- model init etc --------------
  # ...
  
  
  model.fit(x=ds_input, y=ds_output, batch_size=32, epochs=50)
  
  </code></pre>
  <p>But I get error saying this:</p>
  <p><code> `y` argument is not supported when using dataset as input</code></p>
  <p>How can i use my own input images and output images when training model?</p>