Skip to content

Commit

Permalink
Add YOLO Layer 'nbiases' (#8893)
Browse files Browse the repository at this point in the history
Co-authored-by: KyeongSoo Kim <[email protected]>
  • Loading branch information
K9714 and KyeongsooKim2 authored May 3, 2024
1 parent 0816707 commit d02cc3a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/yolo_layer.c
Original file line number Diff line number Diff line change
Expand Up @@ -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.cost = (float*)xcalloc(1, sizeof(float));
l.biases = (float*)xcalloc(total * 2, sizeof(float));
l.nbiases = total * 2;
if(mask) l.mask = mask;
else{
l.mask = (int*)xcalloc(n, sizeof(int));
Expand Down

0 comments on commit d02cc3a

Please sign in to comment.