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 thi
In case of too much size in tfrecord files you use directly read bytes.
This link shows it. TFrecords occupy more space than original JPEG images
you use this function to read bytes directly.
img_bytes = open(path,'rb').read()
reference
https://github.com/tensorflow/tensorflow/issues/9675