-
Notifications
You must be signed in to change notification settings - Fork 217
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Supervision frame mask not handling negative end time #1203
Comments
…end indices When flipping mask digits to 1.0, negative indices should never be used.
I see. I think your PR makes sense to help resolve this. You may also want to use |
I tried it. But it would remove an entire Supervision altogether, regardless of whether a portion of its Alignment items are within the Cut time range. |
I made some changes in alignment start times recently (#1193). Not sure if it is related, but may be worth checking if it resolved your issue? |
Want to understand this. With #1193, the expectation is to unify all the Supervision and Alignment timestamps to absolutes (w.r.t. Recording start), and no more relatives (w.r.t. Cut start)? |
@ArthLeu Alignments were always supposed to have absolute start times (w.r.t. the recording), but there was a bug in the implementation of some functions where they were being modified. |
lhotse/lhotse/cut/set.py
Lines 2908 to 2922 in c5f26af
CutSet.cut_into_windows()
produces negative start times in returnedSupervision
andAlignment
items. But when computing the mask usingsupervision_frame_masks()
, the end timeet
(assumed obtained from start + duration) does not handle this case where alignment ends before cut start, e.g.et <= 0
.Please verify if this is the case and resolve if needed.
The text was updated successfully, but these errors were encountered: