Skip to content

Shape mismatch while training #27

Open
@aakashthapa22

Description

@aakashthapa22

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.

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