Wolfram Neural Net Repository
Immediate Computable Access to Neural Net Models
Detect and localize objects in an image
Released in 2020, this family of object detection models is obtained by uniformly scaling the resolution, depth, and width of the original EfficientNet models, obtaining larger nets. In addition, a novel weighted bidirectional feature pyramid network (BiFPN) is introduced for fast and easy multiscale feature fusion. EfficientDet-D7 achieves stateof-the-art 55.1 AP on COCO test-dev, being 4x – 9x smaller and using 13x – 42x fewer FLOPs than previous detectors.
Number of models: 9
The models achieve the following accuracies on the MS-COCO test set.
Get the pre-trained net:
In[1]:= | ![]() |
Out[1]= | ![]() |
This model consists of a family of individual nets, each identified by a specific parameter combination. Inspect the available parameters:
In[2]:= | ![]() |
Out[2]= | ![]() |
Pick a non-default net by specifying the parameters:
In[3]:= | ![]() |
Out[3]= | ![]() |
Pick a non-default uninitialized net:
In[4]:= | ![]() |
Out[4]= | ![]() |
Write an evaluation function to scale the result to the input image size and suppress the least probable detections:
In[5]:= | ![]() |
Out[5]= | ![]() |
In[6]:= | ![]() |
Obtain the detected bounding boxes with their corresponding classes and confidences for a given image:
In[7]:= | ![]() |
Out[7]= | ![]() |
In[8]:= | ![]() |
In[9]:= | ![]() |
Inspect which classes are detected:
In[10]:= | ![]() |
Out[10]= | ![]() |
Visualize the detection:
In[11]:= | ![]() |
Out[11]= | ![]() |
The network computes 49,104 bounding boxes and the probability that the objects in each box are of any given class:
In[12]:= | ![]() |
In[13]:= | ![]() |
Out[13]= | ![]() |
In[14]:= | ![]() |
Out[14]= | ![]() |
Visualize all the boxes predicted by the net scaled by their "objectness" measures:
In[15]:= | ![]() |
In[16]:= | ![]() |
In[17]:= | ![]() |
Out[17]= | ![]() |
Visualize all the boxes scaled by the probability that they contain a cat:
In[18]:= | ![]() |
Out[18]= | ![]() |
In[19]:= | ![]() |
Out[19]= | ![]() |
Superimpose the cat prediction on top of the scaled input received by the net:
In[20]:= | ![]() |
Out[20]= | ![]() |
Inspect the number of parameters of all arrays in the net:
In[21]:= | ![]() |
Out[21]= | ![]() |
Obtain the total number of parameters:
In[22]:= | ![]() |
Out[22]= | ![]() |
Obtain the layer type counts:
In[23]:= | ![]() |
Out[23]= | ![]() |
Display the summary graphic:
In[24]:= | ![]() |
In[25]:= | ![]() |