Storing Images in TensorFlow Record Files

How to use TFRecord files, a TensorFlow-specific data format for efficient data storage and reading, when dealing with images

Pascal Janetzky
Towards Data Science
6 min readMar 2, 2023

--

Did you know that TensorFlow has a custom format to store data? It’s called TensorFlowRecords — or TFRecords for short—and builds upon a simple principle:

Store data sequentially (within a file) to access continuous chunks quickly.

--

--