Inception model transfer values

As we mentioned earlier, we will be using the pre-trained inception model on the ImageNet dataset. So, we need to download this pre-trained model from the internet.

Let's start off by defining data_dir for the inception model:

inception.data_dir = 'inception/'

The weights of the pre-trained inception model are about 85 MB. The following line of code will download it if it doesn't exist in the data_dir defined previously:

inception.maybe_download()Downloading Inception v3 Model ...- Download progress: 100%

We will load the inception model so that we can use it as a feature extractor for our CIFAR-10 images:

# Loading the inception model so that we can inialized it with the pre-trained weights and ...

Get Deep Learning By Example now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.