OutputLayer

Description

Stores information about each output pool of YOLOv3, including the number of width and height grids and the size of a prior box.

Structure Definition

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
struct OutputLayer {
    int layerIdx;
    int width;
    int height;
    float anchors[6];
};
struct OutputLayer {
    size_t width;
    size_t height;
    float anchors[ANCHOR_NUM]; // ANCHOR_NUM = 6
};

Parameters

Parameter

Description

layerIdx

Index of each output pool of YOLOv3.

width

Number of width grids of the prior box.

height

Number of height grids of the prior box.

anchors

Size of the prior box.