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

Nan errors when trainning #8

Open
Robinatp opened this issue May 12, 2022 · 4 comments
Open

Nan errors when trainning #8

Robinatp opened this issue May 12, 2022 · 4 comments

Comments

@Robinatp
Copy link

Hello, I met the following problems in the training, as follow:

2022-05-12 14:56:20,955 (train:487) INFO: (Steps: 1000) train/embed_loss = nan.
2022-05-12 14:56:20,955 (train:487) INFO: (Steps: 1000) train/spk_similariy = nan.
2022-05-12 14:56:20,955 (train:487) INFO: (Steps: 1000) train/spectral_convergence_loss = nan.
2022-05-12 14:56:20,955 (train:487) INFO: (Steps: 1000) train/log_stft_magnitude_loss = nan.
2022-05-12 14:56:20,956 (train:487) INFO: (Steps: 1000) train/generator_loss = nan.

Do you have any proposals for me?

Thx!

@Rongjiehuang
Copy link
Owner

Hi, it's weird and I haven't come across this issue. Could retrain the model using another machine solve it? :)

@Robinatp
Copy link
Author

I find some problem,maybe you should update the code , as bellow:

encoder/audio.py:171: dBFS_change = target_dBFS - 10 * np.log10(np.mean(wav ** 2)+1e-8)
encoder/audio.py:180: dBFS_change = target_dBFS - 10 * torch.log10(torch.mean(wav ** 2)+1e-8)

@Robinatp Robinatp reopened this May 20, 2022
@Robinatp
Copy link
Author

However, there is another new problem!

2022-05-20 20:32:54,063 (train:512) INFO: (Steps: 3000) train/embed_loss = 0.0153.
2022-05-20 20:32:54,063 (train:512) INFO: (Steps: 3000) train/spk_similariy = nan.
2022-05-20 20:32:54,063 (train:512) INFO: (Steps: 3000) train/spectral_convergence_loss = 0.2280.
2022-05-20 20:32:54,063 (train:512) INFO: (Steps: 3000) train/log_stft_magnitude_loss = 0.7044.
2022-05-20 20:32:54,063 (train:512) INFO: (Steps: 3000) train/generator_loss = 0.9629.
2022-05-20 20:32:54,063 (train:512) INFO: (Steps: 3000) train/embed_loss = 0.0155.
2022-05-20 20:32:54,064 (train:512) INFO: (Steps: 3000) train/spk_similariy = nan.
2022-05-20 20:32:54,064 (train:512) INFO: (Steps: 3000) train/spectral_convergence_loss = 0.2294.
2022-05-20 20:32:54,064 (x2num:14) WARNING: NaN or Inf found in input tensor.2022-05-20 20:32:54,064 (train:512) INFO: (Steps: 3000) train/log_stft_magnitude_loss = 0.7057.
2022-05-20 20:32:54,064 (train:512) INFO: (Steps: 3000) train/generator_loss = 0.9660.

@qiao131
Copy link

qiao131 commented Oct 10, 2022

I'm facing the same situation as you, wondering if you have solved it. Thanks.

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

3 participants