Creating an Inception model
The Inception v3 model has two branches, each of which generates an output, and in the original model training, we would merge the losses as we did for style transfer. As of now we are interested in using only one branch to calculate pre-convoluted features using Inception. Getting into the details of this is outside the scope of the book. If you are interested in knowing more about how it works, then going through the paper and the source code (https://github.com/pytorch/vision/blob/master/torchvision/models/inception.py) of the Inception model would help. We can disable one of the branches by setting the aux_logits parameter to False. The following code explains how to create a model and set the aux_logits parameter ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access