public VGG — struct
VGG(imsize::Dims{2}; config, inchannels, batchnorm = false, nclasses, fcsize, dropout)
Construct a VGG model with the specified input image size. Typically, the image size is (224, 224).
Keyword Arguments:
config: VGG convolutional block configuration. It is defined as a vector of tuples(output_channels, num_convolutions)for each blockinchannels::Integer : number of input channelsbatchnorm::Bool : set totrueto use batch normalization after each convolutionnclasses::Integer : number of output classesfcsize: intermediate fully connected layer size (seeMetalhead.vgg_classifier_layers)dropout: dropout level between fully connected layers
VGG(depth::Integer = 16; pretrain = false, batchnorm = false)
Create a VGG style model with specified depth. Available values include (11, 13, 16, 19).
(reference).
See also VGG.
Warning
VGG does not currently support pretrained weights.
Arguments
pretrain: set totrueto load pre-trained model weights for ImageNet