MCPcopy Create free account
hub / github.com/OpenPTrack/open_ptrack_v2 / parse_local

Function parse_local

yolo_detector/darknet_opt/src/parser.c:122–141  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

120} size_params;
121
122local_layer parse_local(list *options, size_params params)
123{
124 int n = option_find_int(options, "filters",1);
125 int size = option_find_int(options, "size",1);
126 int stride = option_find_int(options, "stride",1);
127 int pad = option_find_int(options, "pad",0);
128 char *activation_s = option_find_str(options, "activation", "logistic");
129 ACTIVATION activation = get_activation(activation_s);
130
131 int batch,h,w,c;
132 h = params.h;
133 w = params.w;
134 c = params.c;
135 batch=params.batch;
136 if(!(h && w && c)) error("Layer before local layer must output image.");
137
138 local_layer layer = make_local_layer(batch,h,w,c,n,size,stride,pad,activation);
139
140 return layer;
141}
142
143layer parse_deconvolutional(list *options, size_params params)
144{

Callers 1

parse_network_cfgFunction · 0.85

Calls 5

option_find_intFunction · 0.85
option_find_strFunction · 0.85
get_activationFunction · 0.85
errorFunction · 0.85
make_local_layerFunction · 0.85

Tested by

no test coverage detected