Hi there,
I have transfered a keras based model (with tensorflow backend) to pytorch!  Actually it is the pretrained model of YOLOV2. When I forward a test image to understand how the network works well, I does not have any warnings (notice the forward path consists of Batchnorm layers), but when I move the network to evaluation mode using model.eval(), I face with this warning:
Warning: overflow encountered in exp return 1./(1 + np.exp(-1*inp)) /pytorch_model/yoloUtil.py:143: RuntimeWarning: overflow encountered in exp box_wh = np.exp(feature[..., 2:4])
The overflow warning causes the network fail to predict any bounding boxes. Could you please tell me, why do these problems happen?
Appreciating in advance for a any response!