1
$\begingroup$

How we can use Imagedatagenerator to produce images if we have a folder with a name "train" which contain all the images of every classification( folder contains mixed images). And we have one csv file with an name "train.csv" that contains which images belongs to which label??

$\endgroup$
  • $\begingroup$ Hi, try making your title a bit more informative next time line "How can I use keras ImageDataGenerator with data from csv". To answer your question: you can't! Try using tf.data.Dataset.from_tensor_slices() instead. $\endgroup$ – Djib2011 Nov 9 '19 at 6:29