a-PyTorch-Tutorial-to-Object-Detection
a-PyTorch-Tutorial-to-Object-Detection copied to clipboard
cxcy_to_gcxgcy function return nan values
I traced back where the nan is coming from the loss function. It leads to cxcy_to_gcxgcy
function.
Division is causing nan value it seems. please provide any solution for this.
I am facing the same issue. @Eloneinstein , did u find any solution?
@Eloneinstein @Tathagatd96 Have you fixed this issue?
In my observation, it may happen when mis-order for bbox. BBOX usually places with order [left-top(x),left-top(y), right-down(x), right-down(y)], but nan will occur with [right-down(x), right-down(y), left-top(x),left-top(y)].
@TommyHuang821 that was my problem, thanks!
In my observation, it may happen when mis-order for bbox. BBOX usually places with order [left-top(x),left-top(y), right-down(x), right-down(y)], but nan will occur with [right-down(x), right-down(y), left-top(x),left-top(y)].
@TommyHuang821 that was my problem, thanks! Same!
@destr4ct Hi! I have the same problem. How did you solve it? I'd really appreciate it if you told me. thank you!