Skip to content
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

LPCNet superseded by FARGAN #215

Open
jmvalin opened this issue Oct 11, 2024 · 3 comments
Open

LPCNet superseded by FARGAN #215

jmvalin opened this issue Oct 11, 2024 · 3 comments

Comments

@jmvalin
Copy link
Member

jmvalin commented Oct 11, 2024

LPCNet is no longer being actively developed. It will continue to be available but for most applications, users are encouraged to switch to the Framewise Autoregressive GAN (FARGAN). FARGAN achieves better quality than LPCNet with just 600 MFLOPS complexity. That's 1/5 of the complexity of the most optimized LPCNet and 1/20 of the original LPCNet.

See our demo page for comparisons with LPCNet, HiFi-GAN, CARGAN and FWGAN. The PyTorch source code along with an optimized C implementation are available as part of the larger Opus codec implementation (FARGAN is used for PLC and deep redundancy within Opus).

@jmvalin jmvalin pinned this issue Oct 11, 2024
@YYX666660
Copy link

Hi~
I've read the code and articles about FARGAN. In the latest opus 1.5.2 source code, FARGAN acts as a vocoder after the silk plc for improving the quality of synthesized speech, rather than directly for packet loss concealment.
I would like to ask if I want to train a specialized FARGAN network to perform packet loss concealment directly, what should I do? Is there a code repository implementation for this?
Thanks in advance,
Freya

@jmvalin
Copy link
Member Author

jmvalin commented Dec 19, 2024

FARGAN is a complete vocoder just like LPCNet. In Opus, the FARGAN signal completely replaces (not enhance) the SILK PLC output.

@YYX666660
Copy link

YYX666660 commented Dec 23, 2024

Thank you so much for your reply!

I'm a beginner of codec, and I'm not sure if my understanding is correct 🙏 In the Opus1.5.2 source code, when it comes to lpcnet_plc_conceal module, it seems that the process begins with using compute_plc_pred to update the features and states (using PLCModel, part of the LPCNet), and then compute_pitchdnn computes features for FARGAN (using PitchDNN model). Lastly, FARGAN (using FARGAN model) is used to synthesize pcm. So these three models are used to complete plc together?

If I want to perform plc directly, those three models must be trained and replaced the existing ones in Opus1.5.2, how can I train them separately? (only find the pytorch implementation of FARGAN)

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