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

Why My CTC Loss is always Nan or Inf value? #235

Open
hemanthyernagula opened this issue Oct 15, 2020 · 6 comments
Open

Why My CTC Loss is always Nan or Inf value? #235

hemanthyernagula opened this issue Oct 15, 2020 · 6 comments

Comments

@hemanthyernagula
Copy link

While training the model at every epoch the loss is always a nan or inf value, I tried to debug but could not sort out. If anyone face this kind of issue please help me out.

image

@zuoyuwei
Copy link

zuoyuwei commented Apr 7, 2021

encounter the same question, ask for help

@RobertXiaobinW
Copy link

Have you already solved the problem?

@gittjob
Copy link

gittjob commented Jul 9, 2021

I'm in the same situation. Have you solved it?

@hemanthyernagula
Copy link
Author

No I did not

@GraceKafuu
Copy link

Same problem

@Yuxiang1995
Copy link

Yuxiang1995 commented Jan 10, 2023

if you use your own dataset:

  1. make sure all the labels are not empty
  2. make sure the length of the predicted sequence > 2 * length(label) + 1

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

6 participants