You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following line in the functional method loudness results in nan value when the entire waveform is below the hardcoded loudness threshold value gamma_abs = -70.
An example case is while trying to find loudness of an ambient sound signal.
The threshold can probably be made configurable with mention in documentation. However, I as the method returns a LUFS value, I am unsure if a configurable threshold should be allowed. I am not very familiar with the algorithm yet, any suggestions/corrections to what I've said is most welcome.
Versions
Latest code in main branch.
The text was updated successfully, but these errors were encountered:
🐛 Describe the bug
The following line in the functional method
loudness
results innan
value when the entire waveform is below the hardcoded loudness threshold valuegamma_abs = -70
.audio/src/torchaudio/functional/functional.py
Lines 1627 to 1631 in 69b2a0a
An example case is while trying to find loudness of an ambient sound signal.
The threshold can probably be made configurable with mention in documentation. However, I as the method returns a LUFS value, I am unsure if a configurable threshold should be allowed. I am not very familiar with the algorithm yet, any suggestions/corrections to what I've said is most welcome.
Versions
Latest code in
main
branch.The text was updated successfully, but these errors were encountered: