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

pic should be Tensor or ndarray. Got <class 'numpy.ndarray'> #767

Open
chouliuzuo opened this issue Jun 26, 2024 · 1 comment
Open

pic should be Tensor or ndarray. Got <class 'numpy.ndarray'> #767

chouliuzuo opened this issue Jun 26, 2024 · 1 comment

Comments

@chouliuzuo
Copy link

I followed the ReadMe.md step by step, but the image read by cv2.imread cannot work in mask_generator.generate
It raised a TypeError: pic should be Tensor or ndarray. Got <class 'numpy.ndarray'>, why <class 'numpy.ndarray'> is not ndarray?????
1719379085725

@KacperSynator
Copy link

The downgrade of numpy from 2.1.3 to 1.26 worked for me:

pip3 install --upgrade numpy==1.26

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