Skip to content
Snippets Groups Projects
Commit 77ee1118 authored by Joseph Redmon's avatar Joseph Redmon
Browse files

little fix

parent e610c7de
No related branches found
No related tags found
No related merge requests found
......@@ -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];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment