Closed jeanjerome closed 4 months ago
Same error when device is set to cpu
.
This seems to originate from the pyannote or speechbrain libraries as indicated by the issue https://github.com/pyannote/pyannote-audio/issues/1677. A workaround is to pip install speechbrain==0.5.16
.
It now works with the cpu
device on silicon Mac but now get this error with mps
one :
Whisper did not predict an ending timestamp, which can happen if audio is cut off in the middle of a word. Also make sure WhisperTimeStampLogitsProcessor was used during generation.
Traceback (most recent call last):
File "/Users/jeanjerome/PROJETS/voxcatalyst/app-plus.py", line 18, in <module>
output_text = pipeline(audio_path, num_speakers=2)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Caskroom/miniconda/base/envs/vox-catalyst/lib/python3.11/site-packages/whisperplus/pipelines/whisper_diarize.py", line 171, in __call__
upto_idx = np.argmin(np.abs(end_timestamps - end_time))
~~~~~~~~~~~~~~~^~~~~~~~~~
TypeError: unsupported operand type(s) for -: 'NoneType' and 'float'
Thank you for the error and solution method. I will test it. @jeanjerome
I did not manage to run the
Speaker Diarization
from the README example on an Appel MPS device.I got this error and don't know how to fix it:
Also
speechbrain
is installed:And HF token is declared in
use_auth_token
attribute...Any idea? Thanks for your response... and your great work!