Division by zero in loudness calculation
dhanvanth-pk-13760 opened this issue · 0 comments
dhanvanth-pk-13760 commented
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
.
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.