Introduction

Tutorials

Developer guide

API Reference

private mobilenetv3function

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 kernel
    • c::Float - The multiplier factor for deciding the number of feature maps in the hidden layer
    • t::Integer - The number of output feature maps for a given block
    • r::Integer - The reduction factor (>= 1 or nothing to skip) for squeeze and excite layers
    • s::Integer - The stride of the convolutional kernel
    • a - The activation function used in the bottleneck (typically hardswish or relu)
  • 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