https://github.com/songdejia/Siamese-RPN-pytorch/blob/master/code_v1.0/train_siamrpn.py#L233 should be x3=x3/ratio