lhotse-speech / lhotse

Tools for handling speech data in machine learning projects.
https://lhotse.readthedocs.io/en/latest/
Apache License 2.0
956 stars 219 forks source link

Added has_custom to MixedCut #1383

Closed anteju closed 3 months ago

anteju commented 3 months ago

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.