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;
|
p = p*max;
|
||||||
group = hier->child[max_i];
|
group = hier->child[max_i];
|
||||||
if(hier->child[max_i] < 0) return max_i;
|
if(hier->child[max_i] < 0) return max_i;
|
||||||
|
} else if (group == 0){
|
||||||
|
return max_i;
|
||||||
} else {
|
} else {
|
||||||
return hier->parent[hier->group_offset[group]];
|
return hier->parent[hier->group_offset[group]];
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user