title: ImageDataGenerator keras - save_to_dir
body: <p>I cannot find how to identify classes after saving to directory. It saves images names with random numbers.</p>
  <p>ex. &quot;_1_1234.png&quot;</p>
  <pre><code>ImageDataGenerator.flow(
      x,
      y,
      batch_size=32,
      shuffle=True,
      sample_weight=None,
      seed=None,
      save_to_dir= &quot;path_to_dir&quot;,
      save_prefix=&quot;&quot;,
      save_format=&quot;png&quot;,
      subset=None,
  )
  </code></pre>