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

Bug in sampler.py #5

Open
akanksha28pathak opened this issue Jul 18, 2024 · 0 comments
Open

Bug in sampler.py #5

akanksha28pathak opened this issue Jul 18, 2024 · 0 comments

Comments

@akanksha28pathak
Copy link

Hi Yash,
I am trying to implement your code on '.jpg' files of size 224x224. I am facing an error from 'sampler.py' as follows. The only edits I made in the code were in the data loader wherein I changed the datatype of image to float by using im= im.astype(np.float32) in functions getitem() of both classes. Further , I replaced 64 with 3 at two places in the cluster.py. Any suggestions to resolve this error would be appreciated.

ValueError: setting an array element with a sequence. The requested array has an inhomogeneous shape after 1 dimensions. The detected shape was (3,) + inhomogeneous part.

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