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

Fixing shar reader assert #1117

Merged
merged 1 commit into from
Aug 9, 2023
Merged

Conversation

Tomiinek
Copy link
Contributor

@Tomiinek Tomiinek commented Aug 7, 2023

This PR fixes shar reader's assert that fails unexpectedly for cut IDs with slashes. For example, it fails if the cut ID is small/5118/told_in_a_french_garden_1010_librivox_64kb_mp3/toldinafrenchgarden_05_aldrich_64kb and the recording path is small/5118/told_in_a_french_garden_1010_librivox_64kb_mp3/toldinafrenchgarden_05_aldrich_64kb.flac (a realistic cut ID produced by this recipe https://github.com/lhotse-speech/lhotse/blob/master/lhotse/recipes/librilight.py)

Copy link
Collaborator

@pzelasko pzelasko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch!

@pzelasko pzelasko merged commit 261c64d into lhotse-speech:master Aug 9, 2023
@pzelasko pzelasko added this to the v1.16 milestone Aug 9, 2023
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.

2 participants