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

AttributeError: 'tuple' object has no attribute 'ndim' #1

Open
linbaiwpi opened this issue Feb 19, 2019 · 1 comment
Open

AttributeError: 'tuple' object has no attribute 'ndim' #1

linbaiwpi opened this issue Feb 19, 2019 · 1 comment

Comments

@linbaiwpi
Copy link

Thanks for your post. It's very helpful for me.
But during running the code for CamVid dataset, I got an error syaing "AttributeError: 'tuple' object has no attribute 'ndim'". I think this comes from the "zip" function. But I have no idea about a solution.

Did you get the same issue as mine?

@haritoshi1226
Copy link

@linbaiwpi
I'm saying from the outside.
I got the same error, and I got this solution.
keras-team/keras#13123 (comment)

So, you should change code like this.
train_generator = (pair for pair in zip(image_generator, mask_generator))

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

2 participants