lucidrains / audiolm-pytorch

Implementation of AudioLM, a SOTA Language Modeling Approach to Audio Generation out of Google Research, in Pytorch
MIT License
2.32k stars 249 forks source link

bandwidth params not work! #225

Closed wotulong closed 11 months ago

wotulong commented 11 months ago

I want to imrove the audio quality by setting bandwidth params like encodec, but when i set bandwidth param of EncodecWrapper, it doesn't work, my code is bellow:

audio, codes, _ = codec(raw_audio, return_encoded=True, bandwidth=12.0)

It seems that the bandwidth params in some fun has been setted as a constant value 6. Because i want to synthesis singing voice, so the quality of audio is very important to me. How can i to set the params to improve the audio quality, anyone can help me, thanks!

lucidrains commented 11 months ago

ahh i see, so are you training the coarse transformer then?

lucidrains commented 11 months ago

@wotulong want to see if 1.2.29 does it?

lucidrains commented 11 months ago

you can pass in the bandwidth when initting EncodecWrapper