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.
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.