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

Question about the generate #192

Open
asr-pub opened this issue May 29, 2023 · 0 comments
Open

Question about the generate #192

asr-pub opened this issue May 29, 2023 · 0 comments

Comments

@asr-pub
Copy link

asr-pub commented May 29, 2023

Hello,I trained a semantic tokens -> acoustic tokens(3 codes) model,and I want to use the argmax to make every inference the same.

if argmax:
    print("use argmax")
    sampled = torch.argmax(last_coarse_logits, dim = -1)
else:
    print("not use argmax")
    filtered_logits = top_k(last_coarse_logits, thres = filter_thres)
    sampled = gumbel_sample(filtered_logits, temperature = temperature, dim = -1)

However,when in the argmax mode,the semantic tokens -> acoustic tokens(3 codes) -> wav,and the wav has no speech,with long silence,do u know Why?
image

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