YOLO V3
Trained on
Open Images Data
YOLO (You Only Look Once) Version 3 is an object detection model published in April 2018. It is a single-stage architecture that goes straight from image pixels to bounding box coordinates and class probabilities. Compared to previous versions of YOLO, it performs bounding box regression and classification at three different scales and uses three anchor boxes instead of two. Additionally, residual blocks and skip connections are added and L2 losses for object confidence and class predictions are now replaced by cross-entropy error terms.
Number of layers: 349 |
Parameter count: 65,252,682 |
Trained size: 263 MB |
Examples
Resource retrieval
Get the pre-trained net:
Label list
Define the label list for this model. Integers in the model’s output correspond to elements in the label list:
Evaluation function
Write an evaluation function to scale the result to the input image size and suppress the least probable detections:
Basic usage
Obtain the detected bounding boxes with their corresponding classes and confidences for a given image:
Inspect which classes are detected:
Visualize the detection:
Network result
The network computes 22,743 bounding boxes, the probability of having an object in each box and the conditioned probability that the object is of any given class:
Visualize all the boxes predicted by the net scaled by their “objectness” measures:
Visualize all the boxes scaled by the probability that they contain an animal:
Superimpose the animal prediction on top of the scaled input received by the net:
Class filtering
Obtain a test image:
Obtain bounding boxes for the specified classes only (“Vehicle registration plate” and “Window”):
Visualize the detection:
Net information
Inspect the number of parameters of all arrays in the net:
Obtain the total number of parameters:
Obtain the layer type counts:
Display the summary graphic:
Export to MXNet
Export the net into a format that can be opened in MXNet:
Export also creates a net.params file containing parameters:
Get the size of the parameter file:
The size is similar to the byte count of the resource object:
Requirements
Wolfram Language
12.0
(April 2019)
or above
Resource History
Reference