data_max_length = max(data_max_length_seconds * hz for hz in (wav2vec.target_sample_hz, codec.target_sample_hz))
In #259 I detail the alternative solution of changing the type of max_length in SoundDataset. I chose the change in this PR because it is more minimal and type-restrictive in SoundDataset, but I welcome feedback/edits if you have a better suggestion.
This PR fixes #259 by taking
In #259 I detail the alternative solution of changing the type of
max_length
inSoundDataset
. I chose the change in this PR because it is more minimal and type-restrictive inSoundDataset
, but I welcome feedback/edits if you have a better suggestion.