You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, It will raise an exception when the length of Supervisons and Features mismatch.
AssertionError: Supervisions ending after the cut are not supported for ASR
The exception is due to the value of tol is fixed and too small:
In lhotse/lhotse/dataset/speech_recognition.py
defvalidate_for_asr(cuts: CutSet) ->None:
validate(cuts)
tol=2e-3# 1msforcutincuts:
forsupervisionincut.supervisions:
assertsupervision.start>=-tol, (
f"Supervisions starting before the cut are not supported for ASR"f" (sup id: {supervision.id}, cut id: {cut.id})"
)
# Supervision start time is relative to Cut ...# https://lhotse.readthedocs.io/en/v0.10_e/cuts.html## 'supervision.end' is end of supervision inside the Cutassertsupervision.end<=cut.duration+tol, (
f"Supervisions ending after the cut "f"are not supported for ASR"f" (sup id: {supervision.id}, cut id: {cut.id})"
)
I suspect tol = 2e-3 doesn't meet the intended specifications.
The text was updated successfully, but these errors were encountered:
when converting data form old kaldi format to lhotse, it is recommand to use tolerance 100ms.
e.g. In lhotse/lhotse/bin/modes/kaldi.py
However, It will raise an exception when the length of Supervisons and Features mismatch.
The exception is due to the value of
tol
is fixed and too small:In lhotse/lhotse/dataset/speech_recognition.py
I suspect
tol = 2e-3
doesn't meet the intended specifications.The text was updated successfully, but these errors were encountered: