Search icon
Subscription
0
Cart icon
Close icon
You have no products in your basket yet
Save more on your purchases!
Savings automatically calculated. No voucher code required
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Advanced Deep Learning with R

You're reading from  Advanced Deep Learning with R

Product type Book
Published in Dec 2019
Publisher Packt
ISBN-13 9781789538779
Pages 352 pages
Edition 1st Edition
Languages
Author (1):
Bharatendra Rai Bharatendra Rai
Profile icon Bharatendra Rai

Table of Contents (20) Chapters

Preface 1. Section 1: Revisiting Deep Learning Basics
2. Revisiting Deep Learning Architecture and Techniques 3. Section 2: Deep Learning for Prediction and Classification
4. Deep Neural Networks for Multi-Class Classification 5. Deep Neural Networks for Regression 6. Section 3: Deep Learning for Computer Vision
7. Image Classification and Recognition 8. Image Classification Using Convolutional Neural Networks 9. Applying Autoencoder Neural Networks Using Keras 10. Image Classification for Small Data Using Transfer Learning 11. Creating New Images Using Generative Adversarial Networks 12. Section 4: Deep Learning for Natural Language Processing
13. Deep Networks for Text Classification 14. Text Classification Using Recurrent Neural Networks 15. Text classification Using Long Short-Term Memory Network 16. Text Classification Using Convolutional Recurrent Neural Networks 17. Section 5: The Road Ahead
18. Tips, Tricks, and the Road Ahead 19. Other Books You May Enjoy

Using a pretrained model to identify an image

Before we proceed, let's load three packages that we'll need in this section:

# Libraries used
library(keras)
library(EBImage)
library(tensorflow)

The Keras and TensorFlow libraries will be used for developing the pretrained image classification model, while the EBImage library will be used for processing and visualizing image data.

In Keras, the following pretrained image classification models are available:

  • Xception
  • VGG16
  • VGG19
  • ResNet50
  • InceptionV3
  • InceptionResNetV2
  • MobileNet
  • MobileNetV2
  • DenseNet
  • NASNet

These pretrained models are trained on images from ImageNet (http://www.image-net.org/). ImageNet is a huge image database that contains several million images.

We will start by using a pretrained model known as resnet50 to identify an image. The following is the code we can use to utilize...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}