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

May be a bug? input parameters for model.predictor_encoder and model.style_encoder in train_finetune.py #243

Open
starmoon-1134 opened this issue May 29, 2024 · 0 comments

Comments

@starmoon-1134
Copy link

In the train_finetune.py file, we have noticed a potential issue with the input parameters for model.predictor_encoder and model.style_encoder. The current code is as follows:

s = model.style_encoder(gt.unsqueeze(1))           
s_dur = model.predictor_encoder(gt.unsqueeze(1))

However, in the train_second.py file, we have found a different implementation that takes into account the multispeaker scenario:

s_dur = model.predictor_encoder(st.unsqueeze(1) if multispeaker else gt.unsqueeze(1))
s = model.style_encoder(st.unsqueeze(1) if multispeaker else gt.unsqueeze(1))
martinambrus pushed a commit to martinambrus/StyleTTS2 that referenced this issue Aug 31, 2024
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

1 participant