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

ValueError: setting an array element with a sequence. #163

Open
tigerdhl opened this issue Feb 15, 2019 · 4 comments
Open

ValueError: setting an array element with a sequence. #163

tigerdhl opened this issue Feb 15, 2019 · 4 comments

Comments

@tigerdhl
Copy link

i got this error,someone knows?

@mdbloice
Copy link
Owner

mdbloice commented Mar 7, 2019

Hi @tigerdhl, not entirely sure what you mean. Can you give a minimal working example? Some piece of code where the error is occurring?

@luxu1220
Copy link

luxu1220 commented Apr 2, 2019

same error here

~/work/.localenv/lib/python3.5/site-packages/Augmentor/Pipeline.py in keras_generator(self, batch_size, scaled, image_data_format)
538
539 if scaled:
--> 540 X = X.astype('float32')
541 X /= 255. # PR #126
542

ValueError: setting an array element with a sequence.

@rstml
Copy link

rstml commented May 20, 2019

Same here. I can see there's TODO to fix that, any ETA?
https://github.com/mdbloice/Augmentor/blob/master/Augmentor/Pipeline.py#L460

@4ND4
Copy link

4ND4 commented Jun 16, 2020

Fixed it by setting the parameter scaled to False. However I have a new issue related to #164

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

5 participants