Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

preprocess_input

Preprocess input for pre-defined imagenet networks


Description

These assume you have already converted images into a three channel, 224 by 224 matrix with load_img and img_to_array. The processing differs based on the model so set the appropriate model that you are using.

Usage

preprocess_input(img, model = c("Xception", "VGG16", "VGG19", "ResNet50",
  "InceptionV3"))

Arguments

img

the input image, as an array

model

the model you wish to preprocess to

Author(s)

Taylor B. Arnold, taylor.arnold@acm.org

References


kerasR

R Interface to the Keras Deep Learning Library

v0.6.1
LGPL-2
Authors
Taylor Arnold [aut, cre]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.