title: How do I convert a directory of jpeg images to TFRecords file in tensorflow?
body: <p>I have training data that is a directory of jpeg images and a corresponding text file containing the file name and the associated category label.  I am trying to convert this training data into a tfrecords file as described in the tensorflow documentation. I have spent quite some time trying to get this to work but there are no examples in tensorflow that demonstrate how to use any of the readers to read in jpeg files and add them to a tfrecord using tfrecordwriter</p>