Skip to content

Bug in sampler.py #5

@akanksha28pathak

Description

@akanksha28pathak

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions