They always say that the simplest way of using tf.data.Dataset is the from_tensor_slices method. So give it a try. Suppose that I have a list of image file names and the variable name of that list is all_image_paths.
all_image_pathsThe output is something like
['../input/train_images/5998cfa4-23d2-11e8-a6a3-ec086b02610b.jpg',
'../input/train_images/588a679f-23d2-11e8-a6a3-ec086b02610b.jpg',
'../input/train_images/59279ce3-23d2-11e8-a6a3-ec086b02610b.jpg',
'../input/train_images/5a2af4ab-23d2-11e8-a6a3-ec086b02610b.jpg'…
