private
mobilenetv3
— function
mobilenetv3(width_mult, configs; 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::Int
- The size of the convolutional kernelc::Float
- The multiplier factor for deciding the number of feature maps in the hidden layert::Int
- The number of output feature maps for a given blockr::Int
- The reduction factor (>= 1
ornothing
to skip) for squeeze and excite layerss::Int
- The stride of the convolutional kernela
- The activation function used in the bottleneck (typicallyhardswish
orrelu
)
max_width
: The maximum number of feature maps in any layer of the networknclasses
: the number of output classes