Idea

Use a single neural network to predict bounding boxes and class probabilities directly from full images in one evaluation.

Method

  • Divide the input image into an grid. If the center of an object falls into a grid cell, that grid cell is responsible for detecting that object
  • Each grid cell predicts bounding boxes and confidence scores for those boxes. These confidence score reflect how confident the model is that the box contains an object and also how accurate it thinks the box is that it predicts.
  • Each gird cell also predicts conditional class probabilities. These probabilities are conditioned on the grid cell containing an object. The model only predict one set of class probabilities per gird cell, regardless of the number of boxes
  • Therefore, the predictions are encoded as an tensor
  • After that, we have each grids having scores and box positions for every class. Then we could obtain the boxes for each class by combing all the gird box predictions together whose class scores for this certain class if relatively high.

Architecture

Apply convolutional layers pre-trained on ImageNet

Loss Function

where the coordinates represent the center of the box relative the bounds of the grid cell. and the width and height are predicted relative to the whole image