sh-lee-prml / BigVGAN

Unofficial pytorch implementation of BigVGAN: A Universal Neural Vocoder with Large-Scale Training
MIT License
130 stars 16 forks source link

correct eps value? #4

Closed skol101 closed 2 years ago

skol101 commented 2 years ago

Configuration json contains value of eps as 1e-9.

In the transformers.py there's def searchsorted(bin_locations, inputs, eps=1e-6):

Whilst in another issue you say that spec must be (and eps as 1e-6) spec = torch.sqrt(spec.pow(2).sum(-1) + 1e-6)

sh-lee-prml commented 2 years ago

The eps in config files is a hyperparameter for AdamW optimizer.

We followed the value for spec which is used in VITS. (1e-6). (most vocoders use the value of 1e-9)

You can use any value for spec but must use the same option for your TTS/VC model and vocoder.