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

value error in train.py caused by augment_random_sample_crop #238

Open
TheUncivil opened this issue Apr 13, 2023 · 4 comments
Open

value error in train.py caused by augment_random_sample_crop #238

TheUncivil opened this issue Apr 13, 2023 · 4 comments

Comments

@TheUncivil
Copy link

error description
When running the train.py script with a custom dataset, the script crashes immediately with the following message:

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

The error did not appear when I set the "augment_random_sample_crop" to False.

Environment:

  • OS: Ubuntu 22.04.2
  • GPU: NVidia GeForce RTX 2080 Ti
  • CUDA Version 11.5.119
@2j1ejyu
Copy link

2j1ejyu commented Sep 22, 2023

I've got the exast same error. Did you resolved it?

@TheUncivil
Copy link
Author

I didn't, I simply set 'augment_random_sample_crop' to false. That means I have less training data augmentation, but that's not currently a problem for me.

@2j1ejyu
Copy link

2j1ejyu commented Sep 25, 2023

Thanks for replying :) I've solved it by downgrading numpy version

@BBrianZhang
Copy link

This issue got resolved when I downgraged numpy to 1.23.0.

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