googlenet
GoogLeNet convolutional neural network
Description
GoogLeNet is a convolutional neural network that is 22 layers deep. You can load a pretrained version of the network trained on either the ImageNet [1] or Places365 [2] [3] data sets. The network trained on ImageNet classifies images into 1000 object categories, such as keyboard, mouse, pencil, and many animals. The network trained on Places365 is similar to the network trained on ImageNet, but classifies images into 365 different place categories, such as field, park, runway, and lobby. These networks have learned different feature representations for a wide range of images. The pretrained networks both have an image input size of 224-by-224. For more pretrained networks in MATLAB®, see Pretrained Deep Neural Networks.
To classify new images using GoogLeNet, use classify
. For an
example, see Classify Image Using GoogLeNet.
You can retrain a GoogLeNet network to perform a new task using transfer learning. When performing transfer learning, the most common approach is to use networks pretrained on the ImageNet data set. If the new task is similar to classifying scenes, then using the network trained on Places-365 can give higher accuracies. For an example showing how to retrain GoogLeNet on a new classification task, see Train Deep Learning Network to Classify New Images
returns a GoogLeNet network
trained on the ImageNet data set.net
= googlenet
This function requires the Deep Learning Toolbox™ Model for GoogLeNet Network support package. If this support package is not installed, then the function provides a download link.
returns a GoogLeNet network trained on either the ImageNet or Places365 data set. The
syntax net
= googlenet('Weights',weights
)googlenet('Weights','imagenet')
(default) is equivalent to
googlenet
.
The network trained on ImageNet requires the Deep Learning Toolbox Model for GoogLeNet Network support package. The network trained on Places365 requires the Deep Learning Toolbox Model for Places365-GoogLeNet Network support package. If the required support package is not installed, then the function provides a download link.
returns the untrained GoogLeNet network architecture. The untrained model does not require
the support package. lgraph
= googlenet('Weights','none'
)
Examples
Input Arguments
Output Arguments
References
[1] ImageNet. http://www.image-net.org
[2] Zhou, Bolei, Aditya Khosla, Agata Lapedriza, Antonio Torralba, and Aude Oliva. "Places: An image database for deep scene understanding." arXiv preprint arXiv:1610.02055 (2016).
[3] Places. http://places2.csail.mit.edu/
[4] Szegedy, Christian, Wei Liu, Yangqing Jia, Pierre Sermanet, Scott Reed, Dragomir Anguelov, Dumitru Erhan, Vincent Vanhoucke, and Andrew Rabinovich. "Going deeper with convolutions." In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 1-9. 2015.
[5] BVLC GoogLeNet Model. https://github.com/BVLC/caffe/tree/master/models/bvlc_googlenet
Extended Capabilities
Version History
Introduced in R2017b
See Also
Deep Network Designer | vgg16
| vgg19
| resnet18
| resnet50
| resnet101
| densenet201
| inceptionresnetv2
| squeezenet
| trainNetwork
| layerGraph
| inceptionv3
| DAGNetwork