mirror of
https://github.com/pjreddie/darknet.git
synced 2023-08-10 21:13:14 +03:00
🐛 🐛 🐛
This commit is contained in:
parent
a4ae313b1c
commit
1b001a7f58
@ -71,6 +71,8 @@ int hierarchy_top_prediction(float *predictions, tree *hier, float thresh, int s
|
||||
p = p*max;
|
||||
group = hier->child[max_i];
|
||||
if(hier->child[max_i] < 0) return max_i;
|
||||
} else if (group == 0){
|
||||
return max_i;
|
||||
} else {
|
||||
return hier->parent[hier->group_offset[group]];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user