O'Reilly logo

Deep Learning By Example by Ahmed Menshawy

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required