diff --git a/docs/templates/preprocessing/image.md b/docs/templates/preprocessing/image.md index 791deb32b..1805b7472 100644 --- a/docs/templates/preprocessing/image.md +++ b/docs/templates/preprocessing/image.md @@ -12,7 +12,8 @@ keras.preprocessing.image.ImageDataGenerator(featurewise_center=True, height_shift_range=0., shear_range=0., horizontal_flip=False, - vertical_flip=False) + vertical_flip=False, + dim_ordering='th') ``` Generate batches of tensor image data with real-time data augmentation. The data will be looped over (in batches) indefinitely. @@ -29,6 +30,9 @@ Generate batches of tensor image data with real-time data augmentation. The data - __shear_range__: Float. Shear Intensity (Shear angle in counter-clockwise direction as radians) - __horizontal_flip__: Boolean. Randomly flip inputs horizontally. - __vertical_flip__: Boolean. Randomly flip inputs vertically. + - __dim_ordering__: One of {"th", "tf"}. + "tf" mode means that the images should have shape `(samples, width, height, channels)`, + "th" mode means that the images should have shape `(samples, channels, width, height)`. - __Methods__: - __fit(X)__: Required if featurewise_center or featurewise_std_normalization or zca_whitening. Compute necessary quantities on some sample data.