dlpy.applications.InceptionV3

dlpy.applications.InceptionV3(conn, model_table='InceptionV3', n_classes=1000, n_channels=3, width=299, height=299, scale=1, random_flip=None, random_crop=None, offsets=(103.939, 116.779, 123.68), pre_trained_weights=False, pre_trained_weights_file=None, include_top=False, random_mutation=None)

Generates a deep learning model with the Inceptionv3 architecture with batch normalization layers.

Parameters:
conn : CAS

Specifies the CAS connection object.

model_table : string, optional

Specifies the name of CAS table to store the model in.

n_classes : int, optional

Specifies the number of classes. If None is assigned, the model will automatically detect the number of classes based on the training set.
Default: 1000

n_channels : int, optional

Specifies the number of the channels (i.e., depth) of the input layer.
Default: 3

width : int, optional

Specifies the width of the input layer.
Default: 299

height : int, optional

Specifies the height of the input layer.
Default: 299

scale : double, optional

Specifies a scaling factor to be applied to each pixel intensity values.
Default: 1.0

random_flip : string, optional

Specifies how to flip the data in the input layer when image data is used. Approximately half of the input data is subject to flipping.
Valid Values: ‘h’, ‘hv’, ‘v’, ‘none’

random_crop : string, optional

Specifies how to crop the data in the input layer when image data is used. Images are cropped to the values that are specified in the width and height parameters. Only the images with one or both dimensions that are larger than those sizes are cropped.
Valid Values: ‘none’, ‘unique’, ‘randomresized’, ‘resizethencrop’

offsets : double or iter-of-doubles, optional

Specifies an offset for each channel in the input data. The final input data is set after applying scaling and subtracting the specified offsets.
Default: (103.939, 116.779, 123.68)

pre_trained_weights : bool, optional

Specifies whether to use the pre-trained weights from ImageNet data set
Default: False

pre_trained_weights_file : string, optional

Specifies the file name for the pretained weights. Must be a fully qualified file name of SAS-compatible file (*.caffemodel.h5)
Note: Required when pre_train_weight=True.

include_top : bool, optional

Specifies whether to include pre-trained weights of the top layers, i.e. the FC layers
Default: False

random_mutation : string, optional

Specifies how to apply data augmentations/mutations to the data in the input layer.
Valid Values: ‘none’, ‘random’

Returns:
Sequential

If pre_train_weight is False

Model

If pre_train_weight is True

References

https://www.cv-foundation.org/openaccess/content_cvpr_2016/papers/Szegedy_Rethinking_the_Inception_CVPR_2016_paper.pdf