当前位置:网站首页>yolov3 data reading (2)
yolov3 data reading (2)
2022-08-04 06:06:00 【Big Yellow Cat No. 1】
The previous article will write the yolov3 network layer parameters loaded.
Here are several structures that play a big role in the linked list in yolov3:
typedef struct list{int size;node *front;node *back;} list;typedef struct node{void *val;struct node *next;struct node *prev;} node;typedef struct{char *key;char *val;int used;} kvp;typedef struct{char *type;list *options;}section;Look at the next program in the network parse_network_cfg_custom(char *filename, int batch) function in the parser.c file:
node *n = sections->front;if(!n) error("Config file has no sections");network net = make_network(sections->size - 1);net.gpu_index = gpu_index;size_params params;section *s = (section *)n->val;list *options = s->options;if(!is_network(s)) error("First section must be [net] or [network]");parse_net_options(options, &net);params.h = net.h;params.w = net.w;params.c = net.c;params.inputs = net.inputs;if (batch > 0) net.batch = batch;params.batch = net.batch;params.time_steps = net.time_steps;params.net = net;float bflops = 0;size_t workspace_size = 0;It can be seen that *n represents the first network layer of the yolov3 network[net], in the third line the author creates a network (see network in network.h for details) to storeAll parameters of a network layer, sections->size-1, n in the visible net starts from zero.A size_params structure is initialized on the fifth line to store the information of the input image in a network layer.
The following procedure in network parse_network_cfg_custom(char *filename, int batch) is to read the rest of the layers except the first layer into other *n,
边栏推荐
猜你喜欢
随机推荐
MySQL事务详解(事务隔离级别、实现、MVCC、幻读问题)
剑指 Offer 2022/7/4
flink on yarn任务迁移
多项式回归(PolynomialFeatures)
Th in thymeleaf: href use notes
Kubernetes基础入门(完整版)
Logistic Regression --- Introduction, API Introduction, Case: Cancer Classification Prediction, Classification Evaluation, and ROC Curve and AUC Metrics
攻防世界MISC—MISCall
Delphi-C side interesting menu operation interface design
【CV-Learning】目标检测&实例分割
超详细MySQL总结
Vulnhub:Sar-1
flink-sql大量使用案例
TensorFlow2学习笔记:6、过拟合和欠拟合,及其缓解方案
with recursive用法
攻防世界MISC———Dift
[Deep Learning 21 Days Learning Challenge] 1. My handwriting was successfully recognized by the model - CNN implements mnist handwritten digit recognition model study notes
网络大作业心得笔记
postgresql中创建新用户等各种命令
Thread 、Handler和IntentService的用法









