Tencent / FaceDetection-DSFD

腾讯优图高精度双分支人脸检测器

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

RandomBaiduCrop

XDUSPONGE opened this issue · comments

Hello, thanks for your code, I have some problems with the implementation of the RandomBaiduCrop.
for the code

target_anchor = random.choice(anchors[0:min(anchor_idx + 1, 5) + 1])
ratio = float(target_anchor) / rand_Side 
ratio = ratio * (2 ** random.uniform(-1, 1))

why here need a uniform, this may lead to a negative value of ration, may be there is something wrong here