a-PyTorch-Tutorial-to-Object-Detection icon indicating copy to clipboard operation
a-PyTorch-Tutorial-to-Object-Detection copied to clipboard

cxcy_to_gcxgcy function return nan values

Open anesh-ml opened this issue 4 years ago • 6 comments

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.

anesh-ml avatar May 23 '20 02:05 anesh-ml

I am facing the same issue. @Eloneinstein , did u find any solution?

Tathagatd96 avatar Sep 15 '20 10:09 Tathagatd96

@Eloneinstein @Tathagatd96 Have you fixed this issue?

failable avatar Nov 13 '20 07:11 failable

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 avatar Dec 07 '20 09:12 TommyHuang821

@TommyHuang821 that was my problem, thanks!

m-evdokimov avatar Jan 21 '21 06:01 m-evdokimov

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 avatar Jul 11 '22 11:07 destr4ct

@destr4ct Hi! I have the same problem. How did you solve it? I'd really appreciate it if you told me. thank you!

JYeonKim avatar Jul 29 '22 10:07 JYeonKim