Creating an image regressor to find out the age of people
In this section, we will create a model that will find out the age of a person from an image of their face. For this, we will train the model with a dataset of faces extracted from images of celebrities in Internet Movie Database (IMDb).
As we want to approximate the age, we will use an image regressor for this task.
In the next screenshot, you can see some samples taken from this dataset of celebrity faces:
This notebook with the complete source code can be found here: https://github.com/PacktPublishing/Automated-Machine-Learning-with-AutoKeras/blob/main/Chapter04/Chapter4_CelebrityAgeDetector.ipynb.
We will now explain the relevant code cells of the notebook in detail, as follows:
- Installing AutoKeras: As with the previous example, the first code cell at the top of the notebook is responsible for installing AutoKeras...