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

Clamp audio samples to valid range to prevent NaN loss during training #108

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

shashank14k
Copy link

@shashank14k shashank14k commented Jan 6, 2025

  • I trimmed a large audio into segments, upon loading, one file had maximum sample value >1e29.
  • This resulted in a NaN loss during training
  • The audio is likely corrupted, and the loss should not equal NaN in most cases, but clamping the values within a range should handle edge cases

@shashank14k
Copy link
Author

I could not attach the wav file as github does not support wav format. I could re-encode it to mp4, however rencoding discards such values.

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