The task we are going to solve in this chapter is a classification problem on a dataset of flowers, which is available in tensorflow-datasets (tfds). The dataset's name is tf_flowers and it consists of images of five different flower species at different resolutions. Using tfds, gathering the data is straightforward, and we can get the dataset's information by looking at the info variable returned by the tfds.load invocation, as shown here:
(tf2)
import tensorflow_datasets as tfds
dataset, info = tfds.load("tf_flowers", with_info=True)
print(info)
The preceding code produces the following dataset description:
tfds.core.DatasetInfo(
name='tf_flowers',
version=1.0.0,
description='A large set of images of flowers',
urls=['http://download.tensorflow.org/example_images/flower_photos.tgz'],
features=FeaturesDict...