SSD-VGG-512
Trained on
PASCAL VOC2007, PASCAL VOC2012 and MS-COCO Data
Released in 2016, this model discretizes the output space of bounding boxes into a set of default boxes. At the time of prediction, scores are generated for each object and multiple feature maps with different resolutions are used to make predictions for objects of various sizes. This model processes images at 59 FPS on a NVIDIA Titan X.
Number of layers: 157 |
Parameter count: 29,432,700 |
Trained size: 119 MB |
Examples
Resource retrieval
Get the pre-trained net:
Evaluation function
Write an evaluation function to scale the result to the input image size and suppress the least probable detections:
Define the label list for this model. Integers in the model's output correspond to elements in the label list:
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 24,564 bounding boxes and the probability that the objects in each box are 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 a bus:
Superimpose the bus prediction on top of the scaled input received by the net:
Advanced visualization
Write a function to apply a custom styling to the result of 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
11.3
(March 2018)
or above
Resource History
Reference