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 changes in some cut methods #1059

Merged
merged 3 commits into from
May 22, 2023
Merged

Conversation

desh2608
Copy link
Collaborator

  • When trimming to supervision groups, give sensible ids instead of completely randomized.
  • Progress bar for exporting to Shar.
  • Minor fix in error message.
  • Fix for trim_to_supervisions #1034.

def test_mix_cut_with_other_raises_error(libri_cut):
libri_cut = libri_cut.drop_features()
with pytest.raises(ValueError):
_ = libri_cut.mix(libri_cut.recording)
Copy link
Collaborator

Choose a reason for hiding this comment

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

why is this test supposed to fail? because of drop features or because the argument to mix is of type Recording?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The latter. We cannot mix a Cut with a Recording. (The drop_features() is just to ensure that it does not fail earlier when checking for features in the mixed_in cut.)

@pzelasko pzelasko merged commit 3585627 into lhotse-speech:master May 22, 2023
@pzelasko
Copy link
Collaborator

Thanks!

@pzelasko pzelasko added this to the v1.15 milestone May 22, 2023
@desh2608 desh2608 deleted the cuts branch November 2, 2023 19:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants