-
Notifications
You must be signed in to change notification settings - Fork 7k
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
Runtime error in torchvision nms in Linux. Windows works fine #1705
Comments
Thanks for the bug report! I believe the issue is because we use vision/torchvision/csrc/cuda/nms_cuda.cu Lines 82 to 84 in 07cbb46
long . Although I'm not sure if the current strategy will work for such large tensors, as it might require a bit too much memory.
EDIT: I tried a quick fix by replacing |
Even if the implementation doesn't scale up to larger sizes, it would be great to get a better error message. |
Hi @senarvi, I agree that this error message is not great. We should at least make the error message more meaningful by replacing the |
The range of int32 is -2147483648 to 2147483647. Then why did the error comes in your case with 490698 boxes? |
NMS implementation has issues when the no. of proposals are large. pytorch/vision#1705
Hi,
I'm getting an runtime error when running torchvision\ops\boxes.nms.
torchvision 0.4.0
pytorch 1.2.0 (GPU)
To Reproduce
code:
Environment
Additional context
same code on Windows runs as expected
same issue opened in pytorch/pytorch
The text was updated successfully, but these errors were encountered: