InputType

enum InputType : Enum<InputType>

Different Neural Networks were trained on ImageNet dataset with different image preprocessing. The main types of preprocessing widely used in keras.applications are presented in this enumeration.

Entries

TORCH
Link copied to clipboard
common

This preprocessing will scale pixels between 0 and 1, then will normalize each channel with respect to the ImageNet dataset.

TF
Link copied to clipboard
common
TF()

This preprocessing will scale pixels between -1 and 1, sample-wise.

CAFFE
Link copied to clipboard
common

This preprocessing will convert the images from RGB to BGR, then will zero-center each color channel with respect to the ImageNet dataset, without scaling.

Functions

preprocessing
Link copied to clipboard
common
abstract fun preprocessing(channelsLast: Boolean = true): <ERROR CLASS><<ERROR CLASS><FloatArray, <ERROR CLASS>>, <ERROR CLASS><FloatArray, <ERROR CLASS>>>

Returns preprocessing Operation corresponding to this preprocessing type.

Properties

name
Link copied to clipboard
common
val name: String
ordinal
Link copied to clipboard
common
val ordinal: Int