Smooth L1 Loss return inf value


My localization loss using Smooth L1 Loss and somehow return inf value.
Can you pls explain why it happens and how to fix it?

Thanks in advance!

I’ve figured out it myself.
Having boxes with zero width, height causes this issue. Just remove it!