Dataset
Explore how to create a dataset from image file paths and convert each image file into usable pixel data using TensorFlow. Understand the use of tf.data.Dataset and the map function to efficiently process large image datasets in parallel. By the end, you'll be able to build and prepare image datasets for machine learning models.
We'll cover the following...
We'll cover the following...
Chapter Goals:
- Learn how to create a dataset of image files
- Convert a dataset of image files into decoded pixel data
A. Image dataset
Normally when we do image related tasks we're dealing with a large amount of image data. In this case, it's best to use a TensorFlow dataset, i.e. tf.data.Dataset, to store all the images. We can create a dataset using the from_tensor_slices function. ...