huggingface / speechbox

Apache License 2.0
342 stars 33 forks source link

TypeError: unsupported operand type(s) for -: 'NoneType' and 'float' #29

Open utility-aagrawal opened 11 months ago

utility-aagrawal commented 11 months ago

Hi,

I am getting the following error: image

When I run ASR_diarization pipeline with the following video: https://drive.google.com/file/d/1wBwAs5Ubp-70fAf7uwevEu8XFlqksQja/view?usp=sharing

It's happening because the end timestamp of the last segment is None. I found this - https://github.com/huggingface/transformers/issues/23231.

For now, I was able to suppress the error by removing None from end_timestamps array. I understand that I lose some text towards the end of the video but for my use-case, that's not a problem. I wanted to bring this to your attention for a fix in the future. Let me know if you need anything additional. Thanks!

Demon-tk commented 10 months ago

32

bramdes commented 7 months ago

FYI, having same issue

peregilk commented 7 months ago

I am seeing this issue with at least 75% of the files I am testing on.