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

Shape mismatch while training #27

Open
aakashthapa22 opened this issue Sep 21, 2021 · 0 comments
Open

Shape mismatch while training #27

aakashthapa22 opened this issue Sep 21, 2021 · 0 comments

Comments

@aakashthapa22
Copy link

ValueError: Shape mismatch: The shape of labels (received (49545216,)) should equal the shape of logits except for the last dimension (received (3538944, 14)).

This occurs when I use SparseCategoricalCrossentropy while training images. However, if I use CategoricalCrossentropy there is no issue of shape mismatch but classification is not accurate.

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

1 participant