Skip to content

Conversation

@apengwin
Copy link
Contributor

@apengwin apengwin commented Jun 1, 2018

pad_speech_segments is called in

segmentation.pad_speech_segments(args.segment_padding,
None if args.utt2dur is None
else utt2dur[utt_id])
where max_duration might get set to None. This doesn't fall back on the default value, and causes a type error at
self.stats.padding_duration -= (segment[1] - max_duration)

"""Pads segments by duration 'segment_padding' on either sides, but
ensures that the segments don't go beyond the neighboring segments
or the duration of the utterance 'max_duration'."""
if max_duration == None:
Copy link
Contributor

Choose a reason for hiding this comment

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

@vimalmanohar, please check.

Copy link
Contributor

Choose a reason for hiding this comment

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

Looks fine.

@danpovey danpovey merged commit eef2a09 into kaldi-asr:master Jun 1, 2018
dpriver pushed a commit to dpriver/kaldi that referenced this pull request Sep 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants