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

Bug in error message in forced alignment #3747

Closed
zmolikova opened this issue Feb 16, 2024 · 1 comment
Closed

Bug in error message in forced alignment #3747

zmolikova opened this issue Feb 16, 2024 · 1 comment

Comments

@zmolikova
Copy link

I believe that in the error message below, the variables T and L are switched (not in the condition of the check itself, but in the message).

TORCH_CHECK(
T >= L + R,
"targets length is too long for CTC. Found targets length: ",
T,
", log_probs length: ",
L,
", and number of repeats: ",
R);

According to earlier lines in the code T is the log_probs length and L is the targets size.

const int T = logProbs.size(1); // num frames
const int N = logProbs.size(2); // alphabet size
const int L = targets.size(1); // label length

@nateanl
Copy link
Member

nateanl commented Feb 16, 2024

Thanks @zmolikova for pointing it out. I will make a fix.

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