Skip to content

Conversation

olivecha
Copy link

This issue caused errors when processing sounds with silent segments.

Because the logarithm is used to weight the samples, it is my understanding that replacing log(0) values with 0 would
not reduce the model's accuracy.

When there are zero values in the spectrogram array (the intensity is null) the np.log10 raises an Error (because log10(0) = -inf). Because the log10 is used to reduce the range of the values, when a value is zero, zero should be returned.
When there are zero values in the spectrogram array (the intensity is null) the np.log10 raises an Error (because log10(0) = -inf). Because the log10 is used to reduce the range of the values, when a value is zero, zero should be returned.
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

Successfully merging this pull request may close these issues.

1 participant