Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question on nan #57

Open
xyupeng opened this issue Dec 6, 2022 · 0 comments
Open

Question on nan #57

xyupeng opened this issue Dec 6, 2022 · 0 comments

Comments

@xyupeng
Copy link

xyupeng commented Dec 6, 2022

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant