mirror of
https://github.com/pjreddie/darknet.git
synced 2023-08-10 21:13:14 +03:00
little fix
This commit is contained in:
parent
e610c7de9a
commit
77ee1118bc
@ -347,6 +347,9 @@ void get_region_boxes(layer l, int w, int h, float thresh, float **probs, box *b
|
||||
int col = i % l.w;
|
||||
for(n = 0; n < l.n; ++n){
|
||||
int index = n*l.w*l.h + i;
|
||||
for(j = 0; j < l.classes; ++j){
|
||||
probs[index][j] = 0;
|
||||
}
|
||||
int obj_index = entry_index(l, 0, n*l.w*l.h + i, 4);
|
||||
int box_index = entry_index(l, 0, n*l.w*l.h + i, 0);
|
||||
float scale = predictions[obj_index];
|
||||
|
Loading…
x
Reference in New Issue
Block a user