mirror of https://github.com/AlexeyAB/darknet.git
Add YOLO Layer 'nbiases' (#8893)
Co-authored-by: KyeongSoo Kim <kyeongsoo.kim@konantech.com>
This commit is contained in:
parent
08167076fd
commit
d02cc3a816
|
@ -29,6 +29,7 @@ layer make_yolo_layer(int batch, int w, int h, int n, int total, int *mask, int
|
||||||
l.classes = classes;
|
l.classes = classes;
|
||||||
l.cost = (float*)xcalloc(1, sizeof(float));
|
l.cost = (float*)xcalloc(1, sizeof(float));
|
||||||
l.biases = (float*)xcalloc(total * 2, sizeof(float));
|
l.biases = (float*)xcalloc(total * 2, sizeof(float));
|
||||||
|
l.nbiases = total * 2;
|
||||||
if(mask) l.mask = mask;
|
if(mask) l.mask = mask;
|
||||||
else{
|
else{
|
||||||
l.mask = (int*)xcalloc(n, sizeof(int));
|
l.mask = (int*)xcalloc(n, sizeof(int));
|
||||||
|
|
Loading…
Reference in New Issue