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

[bug] set_audio_duration_mismatch_tolerance not work for subprocess #1431

Open
pkufool opened this issue Dec 4, 2024 · 1 comment
Open

Comments

@pkufool
Copy link
Contributor

pkufool commented Dec 4, 2024

When loading mp3 or opus like format ausios that need a seperate process, using the function set_audio_duration_mismatch_tolerance is not work, prefer to use the enviorment variable, i.e. export LHOTSE_AUDIO_DURATION_MISMATCH_TOLERANCE=0.05

@pkufool pkufool changed the title set_audio_duration_mismatch_tolerance not work for subprocess [bug] set_audio_duration_mismatch_tolerance not work for subprocess Dec 4, 2024
@pzelasko
Copy link
Collaborator

pzelasko commented Dec 5, 2024

Yes, you'd need to set it separately in every subprocess. For PT dataloader there's a worker_init_fn you can provide.

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

No branches or pull requests

2 participants