Tensorflow: Do TFRecords generated files always have a larger file size than the original data?

If I have a 5gb jpg image folder in general, and I convert my files to TFRecords, splitting them into 280 for training, 120 for verification and 100 for test, is the total file size 3 created TFrecords files always more than 5 GB?

Since I currently have a tfrecords ~ 100mb file for the training file and about 40-50mb for validation and testing files. I suspect that the files may not have been created correctly, but I cannot verify it. Thus, if the combined file size of the three tfrecords files is less than 5 GB, does this mean that the files are not created correctly?

How to check if files read the correct data? (Could I read the data from the tfrecords file? As long as the shapes for the tensor data are correct.)

+4
source share

Source: https://habr.com/ru/post/1660688/


All Articles