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 so large commit loss weight #36

Open
Ming-er opened this issue Sep 22, 2024 · 4 comments
Open

Why so large commit loss weight #36

Ming-er opened this issue Sep 22, 2024 · 4 comments

Comments

@Ming-er
Copy link

Ming-er commented Sep 22, 2024

Hi, author. I find that in the training code, the commit loss weight is set to 1000 which is much higher than that of encodec and speechtokenizer, why so large commit loss weight? Will it contribute to higher code usage or trigger some training instability? Thanks~

@jishengpeng
Copy link
Owner

Hi, author. I find that in the training code, the commit loss weight is set to 1000 which is much higher than that of encodec and speechtokenizer, why so large commit loss weight? Will it contribute to higher code usage or trigger some training instability? Thanks~

This parameter was configured a long time ago, and I assume it was initially intended to ensure that the various loss functions could remain on a similar order of magnitude.

@Ming-er
Copy link
Author

Ming-er commented Sep 23, 2024

Thanks for your reply. Besides, I also want to know how to compute the codebook usage rate?

@jishengpeng
Copy link
Owner

Thanks for your reply. Besides, I also want to know how to compute the codebook usage rate?

During the inference process, the codebook utilization can be calculated by recording the occurrence frequency of each codebook entry using the LibriTTS test-clean dataset.

@Ming-er
Copy link
Author

Ming-er commented Sep 23, 2024

Thanks for your reply. Besides, I also want to know how to compute the codebook usage rate?

During the inference process, the codebook utilization can be calculated by recording the occurrence frequency of each codebook entry using the LibriTTS test-clean dataset.

So the threshold to classify a code as used is set as 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

2 participants