private mobilenetv3 — function
mobilenetv3(width_mult, configs; inchannels = 3, max_width = 1024, nclasses = 1000)
Create a MobileNetv3 model. (reference).
Arguments
-
width_mult: Controls the number of output feature maps in each block (with 1.0 being the default in the paper; this is usually a value between 0.1 and 1.4) -
configs: a “list of tuples” configuration for each layer that details:k::Integer- The size of the convolutional kernelc::Float- The multiplier factor for deciding the number of feature maps in the hidden layert::Integer- The number of output feature maps for a given blockr::Integer- The reduction factor (>= 1ornothingto skip) for squeeze and excite layerss::Integer- The stride of the convolutional kernela- The activation function used in the bottleneck (typicallyhardswishorrelu)
-
inchannels: The number of input channels. The default value is 3. -
max_width: The maximum number of feature maps in any layer of the network -
nclasses: the number of output classes