EfficientNet-V2 Trained on ImageNet Competition Data

Identify the main object in an image

Released in 2021, this family of models focuses on improving both the training speed and parameter efficiency of the original EfficientNet family. In comparison to the original, EfficientNet-V2 does not use depthwise convolutions and squeeze-and-excitation blocks in early layers and has smaller kernel sizes and smaller expansion ratios in mobile blocks. Also, the models are trained with an improved progressive learning technique that improves both the training speed and the accuracy. Finally, EfficientNet-V2 demonstrates up to 11x faster training speed and up to 6.8x better parameter efficiency on the ImageNet, CIFAR, Cars and Flowers datasets than prior art.

Number of models: 7

Training Set Information

Performance

Examples

Resource retrieval

Get the pre-trained net:

In[1]:=
NetModel["EfficientNet-V2 Trained on ImageNet Competition Data"]
Out[1]=

NetModel parameters

This model consists of a family of individual nets, each identified by a specific parameter combination. Inspect the available parameters:

In[2]:=
NetModel["EfficientNet-V2 Trained on ImageNet Competition Data", "ParametersInformation"]
Out[2]=

Pick a non-default net by specifying the parameters:

In[3]:=
NetModel[{"EfficientNet-V2 Trained on ImageNet Competition Data", "Architecture" -> "B0"}]
Out[3]=

Pick a non-default uninitialized net:

In[4]:=
NetModel[{"EfficientNet-V2 Trained on ImageNet Competition Data", "Architecture" -> "B0"}, "UninitializedEvaluationNet"]
Out[4]=

Basic usage

Classify an image:

In[5]:=
(* Evaluate this cell to get the example input *) CloudGet["https://www.wolframcloud.com/obj/176c8658-0030-43cc-bd84-5825fa715e55"]
Out[5]=

The prediction is an Entity object, which can be queried:

In[6]:=
pred["Definition"]
Out[6]=

Get a list of available properties of the predicted Entity:

In[7]:=
pred["Properties"]
Out[7]=

Obtain the probabilities of the 10 most likely entities predicted by the net:

In[8]:=
(* Evaluate this cell to get the example input *) CloudGet["https://www.wolframcloud.com/obj/85377d40-587b-40e0-8487-15ce4a72161f"]
Out[8]=

An object outside the list of the ImageNet classes will be misidentified:

In[9]:=
(* Evaluate this cell to get the example input *) CloudGet["https://www.wolframcloud.com/obj/0f2aa57c-8166-412b-bb2d-6e15ce66d212"]
Out[9]=

Obtain the list of names of all available classes:

In[10]:=
EntityValue[
  NetExtract[
    NetModel["EfficientNet-V2 Trained on ImageNet Competition Data"], "Output"][["Labels"]], "Name"] // Short
Out[10]=

Resource History

Reference