EfficientNet family of models

This is the API reference for the EfficientNet family of models supported by Metalhead.jl.

Metalhead.EfficientNetType
EfficientNet(config::Symbol; pretrain::Bool = false, inchannels::Integer = 3,
             nclasses::Integer = 1000)

Create an EfficientNet model (reference).

Arguments

  • config: size of the model. Can be one of [:b0, :b1, :b2, :b3, :b4, :b5, :b6, :b7, :b8].
  • pretrain: set to true to load the pre-trained weights for ImageNet
  • inchannels: number of input channels.
  • nclasses: number of output classes.
Warning

EfficientNet does not currently support pretrained weights.

See also Metalhead.efficientnet.

source
Metalhead.EfficientNetv2Type
EfficientNetv2(config::Symbol; pretrain::Bool = false, inchannels::Integer = 3,
               nclasses::Integer = 1000)

Create an EfficientNetv2 model (reference).

Arguments

  • config: size of the network (one of [:small, :medium, :large, :xlarge])
  • pretrain: whether to load the pre-trained weights for ImageNet
  • inchannels: number of input channels
  • nclasses: number of output classes
Warning

EfficientNetv2 does not currently support pretrained weights.

See also efficientnet.

source