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

[Bugs] ctc loss bug if target is empty #1618

Merged

Conversation

Harold-lkk
Copy link
Collaborator

@Harold-lkk Harold-lkk commented Dec 13, 2022

Motivation

When the target is empty, the target_length is not equal to the actual target_length for
target_lengths = torch.clamp(target_lengths, max=seq_len).long()

The precision of toy data in CRNN can be 100%

@gaotongxiao gaotongxiao merged commit 58ea06d into open-mmlab:dev-1.x Dec 13, 2022
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

Successfully merging this pull request may close these issues.

2 participants