August 2017
Intermediate to advanced
288 pages
8h 6m
English
The current section provides steps to use pretrained models:
require(tensorflow)
slimobj = tf$contrib$slim
The slim library in TensorFlow is used to maintain complex neural network models in terms of definition, training, and evaluation.
tf$reset_default_graph()
# Resizing the images input.img= tf$placeholder(tf$float32, shape(NULL, NULL, NULL, 3)) scaled.img = tf$image$resize_images(input.img, shape(224,224))
# Define VGG16 network library(magrittr) VGG16.model<-function(slim, input.image){ vgg16.network = slim$conv2d(input.image, 64, shape(3,3), scope='vgg_16/conv1/conv1_1') ...Read now
Unlock full access