mirror of https://github.com/AlexeyAB/darknet.git
region_layer: Populate out_h/w/c fileds for consitency (#7783)
This commit is contained in:
parent
7ff80b1a47
commit
894aada70b
|
@ -20,6 +20,10 @@ region_layer make_region_layer(int batch, int w, int h, int n, int classes, int
|
|||
l.batch = batch;
|
||||
l.h = h;
|
||||
l.w = w;
|
||||
l.c = n*(classes + coords + 1);
|
||||
l.out_w = l.w;
|
||||
l.out_h = l.h;
|
||||
l.out_c = l.c;
|
||||
l.classes = classes;
|
||||
l.coords = coords;
|
||||
l.cost = (float*)xcalloc(1, sizeof(float));
|
||||
|
|
Loading…
Reference in New Issue