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

Added has_custom to MixedCut #1383

Merged
merged 1 commit into from
Aug 8, 2024

Conversation

anteju
Copy link
Collaborator

@anteju anteju commented Aug 7, 2024

Currently, MixedCut is not resolving has_custom correctly.
This caused problems in collate_audio when using MixedCut with recording_field != None, which would fail here

https://github.com/lhotse-speech/lhotse/blob/master/lhotse/dataset/collation.py#L175

with something like

AttributeError: No such attribute: 'has_custom'

This PR adds has_custom to MixedCut and a brief unit test.

pzelasko
pzelasko previously approved these changes Aug 8, 2024
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.

Great first contribution! Thanks!

@pzelasko pzelasko added this to the 1.27.0 milestone Aug 8, 2024
@anteju anteju force-pushed the pr/mixedcut-has-custom branch from 888a43f to b704c2d Compare August 8, 2024 15:30
Signed-off-by: Ante Jukić <[email protected]>
@anteju anteju force-pushed the pr/mixedcut-has-custom branch from b704c2d to 1054836 Compare August 8, 2024 15:31
@anteju anteju requested a review from pzelasko August 8, 2024 15:31
@pzelasko pzelasko enabled auto-merge (squash) August 8, 2024 15:37
@pzelasko pzelasko merged commit 9bea2db into lhotse-speech:master Aug 8, 2024
9 checks passed
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