AlexeyAB / yolo2_light

Light version of convolutional neural network Yolo v3 & v2 for objects detection with a minimum of dependencies (INT8-inference, BIT1-XNOR-inference)
MIT License
302 stars 116 forks source link

get_distribution() has a problem about the negative weight value #53

Open haithink opened 5 years ago

haithink commented 5 years ago

if (fabs(cur_range) <= w && w < fabs(cur_range * 2))

if w is negative, then this condition would never be satisfied, so I think this line of code should be change to if (fabs(cur_range) <= fabs(w) && fabs(w) < fabs(cur_range * 2))