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

Small fix for speechcommands.py #1012

Merged
merged 1 commit into from
Mar 28, 2023
Merged

Conversation

yfyeung
Copy link
Contributor

@yfyeung yfyeung commented Mar 28, 2023

In the initial version, I assigned the value None to the text parameter in SupervisionSegment for instances labeled BACKGROUND_NOISE or SILENCE, which could cause an error in https://github.com/lhotse-speech/lhotse/blob/master/lhotse/dataset/speech_recognition.py#L138.

The None type is not compatible with the default_collate(), so I replace the value None with "" in this PR.

@pzelasko pzelasko merged commit 24d682b into lhotse-speech:master Mar 28, 2023
@pzelasko
Copy link
Collaborator

Thanks!

@pzelasko pzelasko added this to the v1.14 milestone Mar 28, 2023
@yfyeung yfyeung deleted the patch-1 branch March 29, 2023 03:48
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