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

RuntimeWarning: invalid value encountered in sqrt #7

Open
letatanu opened this issue Jul 7, 2018 · 0 comments
Open

RuntimeWarning: invalid value encountered in sqrt #7

letatanu opened this issue Jul 7, 2018 · 0 comments

Comments

@letatanu
Copy link

letatanu commented Jul 7, 2018

Thank you so much for sharing code.
When I run the demo code:
python mrflow.py --no_init example/frame1.png example/frame2.png example/frame3.png

It raised this error:

mrflow.py:189: RuntimeWarning: invalid value encountered in sqrt
flowdiff = np.sqrt((u-uinit)**2 + (v-vinit)**2)

sqrt returns this error when we square root a negative number. (u-uinit)**2 + (v-vinit)**2 is always possitive, I don't know why it returns the error.

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