dlpy.applications.DenseNet121

dlpy.applications.DenseNet121(conn, model_table='DENSENET121', n_classes=1000, conv_channel=64, growth_rate=32, n_cells=[6, 12, 24, 16], n_channels=3, reduction=0.5, width=224, height=224, scale=1, random_flip=None, random_crop=None, offsets=103.939, 116.779, 123.68, random_mutation=None)

Generates a deep learning model with the DenseNet121 architecture.

Parameters
connCAS

Specifies the connection of the CAS connection.

model_tablestring

Specifies the name of CAS table to store the model.

n_classesint, 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

conv_channelint, optional

Specifies the number of filters of the first convolution layer. Default: 64

growth_rateint, optional

Specifies the growth rate of convolution layers. Default: 32

n_cellsint array length=4, optional

Specifies the number of dense connection for each DenseNet block. Default: [6, 12, 24, 16]

reductiondouble, optional

Specifies the factor of transition blocks. Default: 0.5

n_channelsint, optional

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

widthint, optional

Specifies the width of the input layer. Default: 224.

heightint, optional

Specifies the height of the input layer. Default: 224.

scaledouble, optional

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

random_flipstring, 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_cropstring, 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’

offsetsdouble 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)

random_mutationstring, optional

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

Returns
Sequential

References

https://arxiv.org/pdf/1608.06993.pdf