Advertisement

darknet代码:网络核心结构

阅读量:

1. src/network.h(darknet中网络结构体:network)

复制代码
    typedef struct network{
    int n;              // 网络总层数(make_network()时赋值)
    int batch;          // parse_net_options()中赋值:一个batch含有的图片张数,下面还有个subdivisions参数,暂时没搞清楚有什么用处,
                        // 总之此处的batch*subdivision才等于网络配置文件中指定的batch值
    int *seen;          // 目前已经读入的图片张数(网络已经处理的图片张数)(在make_network()中动态分配内存)
    float epoch;        
    int subdivisions;   // parse_net_options()中赋值,如上batch注释
    float momentum;     // parse_net_options()中赋值
    float decay;        // parse_net_options()中赋值
    layer *layers;      // 存储网络所有的层,在make

全部评论 (0)

还没有任何评论哟~