Skip to content

Evaluation code #2

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

Open
matrix-alpha opened this issue Jun 23, 2022 · 1 comment
Open

Evaluation code #2

matrix-alpha opened this issue Jun 23, 2022 · 1 comment

Comments

@matrix-alpha
Copy link

Hi, thanks for implementation. Can you provide the evaluation code?

@revsic
Copy link
Owner

revsic commented Jun 26, 2022

Sample inference code is here, or did you mean KDSD, FDSD-like evaluations ?

with open('l1.json') as f:
    config = Config.load(json.load(f))

diffwave = VLBDiffWaveApp(config.model)
diffwave.restore('./l1/l1_99.ckpt')

# mel: [B, T, mel]
audio, _ = diffwave(mel, timesteps=50, key=jax.random.PRNGKey(0))

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