tf.keras.applications.densenet.preprocess_input

tf.keras.applications.densenet.preprocess_input(
    x,
    data_format=None
)

Defined in tensorflow/python/keras/applications/densenet.py.

Preprocesses a numpy array encoding a batch of images.

Arguments:

  • x: a 3D or 4D numpy array consists of RGB values within [0, 255].
  • data_format: data format of the image tensor.

Returns:

Preprocessed array.