OutputLayer

功能

YOLOv3每个输出池所对应的信息。包括宽高维度的网格数和先验框的大小。

结构定义

 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
};

参数说明

参数名

说明

layerIdx

YOLOv3每个输出池的索引。

width

先验框在宽维度的网格数。

height

先验框在高维度的网格数。

anchors

先验框的大小。