Skip to content

Commit

Permalink
Sync docstring of preprocess_input with _preprocess_numpy_input and _…
Browse files Browse the repository at this point in the history
…preprocess_symbolic_input in imagenet_utils.py (#10006)
  • Loading branch information
NiharG15 authored and fchollet committed Apr 23, 2018
1 parent d673afd commit b26fa3b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion keras/applications/imagenet_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,13 +152,16 @@ def preprocess_input(x, data_format=None, mode='caffe'):
# Arguments
x: Input Numpy or symbolic tensor, 3D or 4D.
data_format: Data format of the image tensor/array.
mode: One of "caffe", "tf".
mode: One of "caffe", "tf" or "torch".
- caffe: will convert the images from RGB to BGR,
then will zero-center each color channel with
respect to the ImageNet dataset,
without scaling.
- tf: will scale pixels between -1 and 1,
sample-wise.
- torch: will scale pixels between 0 and 1 and then
will normalize each channel with respect to the
ImageNet dataset.
# Returns
Preprocessed tensor or Numpy array.
Expand Down

0 comments on commit b26fa3b

Please sign in to comment.