W3cubDocs

/TensorFlow Python

tf.keras.applications.mobilenet.preprocess_input

tf.keras.applications.mobilenet.preprocess_input(x)

Defined in tensorflow/python/keras/_impl/keras/applications/mobilenet.py.

Preprocesses a numpy array encoding a batch of images.

Arguments:

  • x: a 4D numpy array consists of RGB values within [0, 255].

Returns:

Preprocessed array.

© 2018 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 3.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/api_docs/python/tf/keras/applications/mobilenet/preprocess_input