Skip to content

Commit

Permalink
Update DiffSinger.md
Browse files Browse the repository at this point in the history
  • Loading branch information
yxlllc authored Sep 18, 2023
1 parent 02a2db4 commit fdd20da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions DiffSinger.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ This will create a `.jit` format model file in the same directory.

Then, move this `.jit` model file and the `config.yaml` together to the `checkpoints/ddsp` directory of the [**DiffSinger**](https://github.com/openvpi/DiffSinger) repository.

Finally, edit the [**`configs/acoustic/nomidi.yaml`**](https://github.com/openvpi/DiffSinger/blob/refactor/configs/acoustic/nomidi.yaml) file in the [**DiffSinger**](https://github.com/openvpi/DiffSinger) repository to enable the DDSP vocoder. the details are:
Finally, edit the [**`configs/acoustic.yaml`**](https://github.com/openvpi/DiffSinger/blob/main/configs/acoustic.yaml) file in the [**DiffSinger**](https://github.com/openvpi/DiffSinger) repository to enable the DDSP vocoder. the details are:
1. Set the `vocoder` option to `DDSP`.
2. Set the `vocoder_ckpt` option to the path of the `.jit` model. An example may be `checkpoints/ddsp/model_100000-traced-torch1.9.1.jit`
3. Check whether other mel related parameters match the parameters in the `checkpoints/ddsp/config.yaml` file. For the details, the `audio_sample_rate`,`audio_num_mel_bins`,`hop_size`,`fft_size`,`win_size`,`fmin` and `fmax` in the[**`configs/acoustic/nomidi.yaml`**](https://github.com/openvpi/DiffSinger/blob/refactor/configs/acoustic/nomidi.yaml) need to match `sampling_rate`, `n_mels`, `block_size`, `n_fft`, `win_length`,`mel_fmin` and `mel_fmax` in the `checkpoints/ddsp/config.yaml`, respectively.
3. Check whether other mel related parameters match the parameters in the `checkpoints/ddsp/config.yaml` file. For the details, the `audio_sample_rate`,`audio_num_mel_bins`,`hop_size`,`fft_size`,`win_size`,`fmin` and `fmax` in the [**`configs/acoustic.yaml`**](https://github.com/openvpi/DiffSinger/blob/main/configs/acoustic.yaml) need to match `sampling_rate`, `n_mels`, `block_size`, `n_fft`, `win_length`,`mel_fmin` and `mel_fmax` in the `checkpoints/ddsp/config.yaml`, respectively.

After doing all this, [**DiffSinger**](https://github.com/openvpi/DiffSinger)'s default NSF-HiFiGAN vocoder has been replaced by your own trained DDSP vocoder, and you can perform preprocessing, training or inference normally.

0 comments on commit fdd20da

Please sign in to comment.