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%