Closed anteju closed 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
MixedCut
has_custom
collate_audio
recording_field != None
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.
Currently,
MixedCut
is not resolvinghas_custom
correctly. This caused problems incollate_audio
when usingMixedCut
withrecording_field != None
, which would fail herehttps://github.com/lhotse-speech/lhotse/blob/master/lhotse/dataset/collation.py#L175
with something like
This PR adds
has_custom
toMixedCut
and a brief unit test.