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)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

get_distribution() has a problem about the negative weight value

haithink opened this issue · comments

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))