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

cudaToNumpy Error #1017

Closed
assulthoni opened this issue Apr 19, 2021 · 3 comments
Closed

cudaToNumpy Error #1017

assulthoni opened this issue Apr 19, 2021 · 3 comments

Comments

@assulthoni
Copy link

Hello, im facing this issue. any ideas?

Traceback (most recent call last):
  File "test_converter.py", line 35, in <module>
    cv_img = jetson.utils.cudaToNumpy(bgr_img)
AttributeError: module 'jetson.utils' has no attribute 'cudaToNumpy'

I also get this warning

jetson.utils -- compiled without NumPy array conversion support (warning)
jetson.utils -- if you wish to have support for converting NumPy arrays,
jetson.utils -- first run 'sudo apt-get install python-numpy python3-numpy'

i did install python-numpy but it doesnt work

@dusty-nv
Copy link
Owner

You would need to re-build/re-install after installing numpy:

$ sudo apt-get install python-numpy python3-numpy
$ cd /path/to/your/jetson-inference
$ cd build
$ cmake ../
$ make
$ sudo make install

@assulthoni
Copy link
Author

thanks @dusty-nv it's work!

@JuanMReyesT
Copy link

Hi, I'm having the same issue with my jetson nano, but reinstalling and rebuilding after installing numpy seems to have the same result, if you kindly could explain me how did you manege to make it work I will be very greatfull it you, I hope someone could read this, thank you in advance

best regards

JuanM

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

3 participants