-
Notifications
You must be signed in to change notification settings - Fork 1.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
Potential bug in calc_square_dist() #2178
Comments
Please @ZCMax have a look. |
I can not reproduce the |
nan_tensor.zip
|
This seems to be caused by a subtle numerical problem. Because there can be negative values around zero in the results of |
yep. using |
Great, |
mmcv/mmcv/ops/points_sampler.py
Line 12 in f527e43
This function could return NaN, since the square dist could be negative in some cases.
for example:
The text was updated successfully, but these errors were encountered: