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

'numpy.float64' object cannot be interpreted as an integer #46

Open
pinky77mm opened this issue Apr 16, 2020 · 1 comment
Open

'numpy.float64' object cannot be interpreted as an integer #46

pinky77mm opened this issue Apr 16, 2020 · 1 comment

Comments

@pinky77mm
Copy link

when my code goes to
ch.minimize( 'pyr': E_pyr), x0=free_variables, callback=cb) in optimization demo,
the error says the 'pyr': E_pyr is float object not integer(which is needed).
But when I look up the definition of minimize function, it does not mention the type of the first parameter.

Has someone met this problem??

@xiexh20
Copy link

xiexh20 commented Apr 4, 2021

I met the same problem, here is how I solved it:
In camera.py function compute_dr_wrt, cast the np array IS, JS to int. Hope that helps

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

2 participants