Lightning-AI / torchmetrics

Machine learning metrics for distributed, scalable PyTorch applications.
https://lightning.ai/docs/torchmetrics/
Apache License 2.0
2.14k stars 408 forks source link

Contribution: Add new audio/speech metrics for generative audio #2464

Open d-caviedes opened 8 months ago

d-caviedes commented 8 months ago

🚀 Feature

Add new audio metrics for generative audio processing

Motivation

The evaluation of speech processing (denoising, dereverberation and in general enhancement) highly depends on audio metrics. Nowadays, generative AI is heavily used for speech/audio enhancement, becoming the new SOTA. However, the performance evaluation of speech enhancement with generative AI needs of reference/target less metrics that highly correlate with MOS (Mean Opinion Score). Currently implemented metrics do not allow for the correct assessment of generative speech enhancement algorithms (e.g. those based on diffusion or GANs) because they heavily rely on reference/target audio.

Newer metrics, such as DNSMOS, NISQA, CDPAM, WARPQ allow for a fundamented assessment of the performance of such algorithms (they are either reference-less or designed for generative methods). In addition, they have shown outperformance over traditional metrics (PESQ, STOI...) regarding MOS correlation.

Pitch

It would be great to have these metrics included, as they are currently available in scattered repositories WARPQ DNSMOS CDPAM NISQA

Alternatives

I cannot think of any

github-actions[bot] commented 8 months ago

Hi! thanks for your contribution!, great first issue!

SkafteNicki commented 7 months ago

Hi @d-caviedes, Thanks for wanting to contribute to torchmetrics. Feel free to contribute any metric within the audio domain that you can :) In general we are looking to add any metric that is used by researches or companies on a regular basis. We welcome both parts of a implementation and full implementations and we will of cause help you with specific implementation details to get the metric into the torchmetrics library.

d-caviedes commented 7 months ago

Hi @SkafteNicki

Cool. Should I just work on my branch and go for pull request afterwards?

Borda commented 7 months ago

Cool. Should I just work on my branch and go for pull request afterwards?

yes, as soon you feel you want to share your work or need some guidance, please open a draft PR :)

Borda commented 3 months ago

hello @d-caviedes still interested in contributing? do you need some more guidance?

d-caviedes commented 3 months ago

Hi yes, I would like to. Actually I have what I think it is a functional WARPQ in my local torchmetrics, but I would need a bit more guidance yes :)

Borda commented 3 months ago

but I would need a bit more guidance yes :)

sure, just ping me on slack or Discord :flamingo: