Views
No views yet
Epochs: 400
Learning Rate: 0.0003
Learning Rate Decay: 0.99981{
2 "upsample_rates": [8, 8, 2, 2],
3 "upsample_kernel_sizes": [16, 16, 4, 4],
4 "upsample_initial_channel": 512,
5 "resblock": "1",
6 "resblock_kernel_sizes": [3, 7, 11],
7 "resblock_dilation_sizes": [[1, 3, 5], [1, 3, 5], [1, 3, 5]]
8}1{
2 "sampling_rate": 22050,
3 "filter_length": 1024,
4 "num_mels": 80,
5 "hop_length": 256,
6 "win_length": 1024,
7 "mel_fmin": 0.0,
8 "mel_fmax": 11025.0,
9 "max_wav_value": 32768.0
10}1cd hifigan_standalone
2python hifigan_api.py --checkpoint path/to/ckpt.pt --input audio.wav --output out.wav1# 将 hifigan_standalone 所在目录加入 PYTHONPATH,或者放到项目中
2# Add hifigan_standalone directory to PYTHONPATH or place it in your project
3from hifigan_standalone import HiFiGANVocoder
4
5vocoder = HiFiGANVocoder("path/to/checkpoint.pt")
6vocoder.reconstruct_wav("input.wav", "output.wav")1import gradio as gr
2from hifigan_standalone import HiFiGANVocoder
3
4vocoder = HiFiGANVocoder("ckpt.pt")
5demo = gr.Interface(
6 fn=vocoder.gradio_reconstruct,
7 inputs=gr.Audio(),
8 outputs=gr.Audio()
9)
10demo.launch()| Checkpoint | SIG | BAK | OVRL | Notes |
|---|---|---|---|---|
| Ground Truth | 3.4699 | 3.8607 | 3.1040 | - |
| Epoch 100 | 3.4416 | 3.7775 | 3.0382 | - |
| Epoch 210 | 3.4737 | 3.7889 | 3.0724 | Best |
| Epoch 300 | 3.4232 | 3.7777 | 3.0250 | Sounds better than the Epoch 210. |
| Epoch 400 | 3.3923 | 3.7841 | 3.0050 | 过拟合 (Overfitting) |