WangYueFt/detr3d

Question on nan

xyupeng opened this issue · 0 comments

Hi there,
This is a great work and many thanks for releasing the code. When I look into the code, I find some places where nan is handled, like

output = torch.nan_to_num(output)
mask = torch.nan_to_num(mask)

and
loss_cls = torch.nan_to_num(loss_cls)
loss_bbox = torch.nan_to_num(loss_bbox)

I wonder in which cases nan would occur? It might help me better understand the model. Any advice would be very much appreciated!