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: 145 |
Parameter count: 27,076,694 |
Trained size: 109 MB

## Examples

### Resource retrieval

Get the pre-trained net:

Out[1]= | |

### 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:

Out[6]= | |

Inspect which classes are detected:

Out[7]= | |

Visualize the detection:

Out[8]= | |

### Network result

The network computes 8,732 bounding boxes and the probability that the objects in each box are of any given class:

Out[9]= | |

Visualize all the boxes predicted by the net scaled by their “objectness” measures:

Out[11]= | |

Visualize all the boxes scaled by the probability that they contain a bus:

Out[12]= | |

Out[13]= | |

Superimpose the bus prediction on top of the scaled input received by the net:

Out[14]= | |

### Advanced visualization

Write a function to apply a custom styling to the result of the detection:

Visualize multiple objects, using a different color for each class:

Out[16]= | |

### Net information

Inspect the number of parameters of all arrays in the net:

Out[17]= | |

Obtain the total number of parameters:

Out[18]= | |

Obtain the layer type counts:

Out[19]= | |

Display the summary graphic:

Out[20]= | |

### Export to MXNet

Export the net into a format that can be opened in MXNet:

Out[21]= | |

Export also creates a net.params file containing parameters:

Out[22]= | |

Get the size of the parameter file:

Out[23]= | |

The size is similar to the byte count of the resource object:

Out[24]= | |

## Requirements

Wolfram Language 11.3
(March 2018) or above

## Resource History

## Reference