huggingface / speechbox

Apache License 2.0
340 stars 32 forks source link

Error with speaker diarization and transcription #33

Open Venkatesh3132003 opened 10 months ago

Venkatesh3132003 commented 10 months ago

ValueError: attempt to get argmin of an empty sequence

code used: from speechbox import ASRDiarizationPipeline pipeline = ASRDiarizationPipeline( asr_pipeline=asr_pipeline, diarization_pipeline=diarization_pipeline)

from transformers import pipeline

asr_pipeline = pipeline( "automatic-speech-recognition", model=model, feature_extractor=feature_extractor, tokenizer=tokenizer, device=0 )

Venkatesh3132003 commented 10 months ago

Finetuned model was used and model name : Venkatesh4342/whisper-small-en-hi

Pikauba commented 6 months ago

This is the same as : #28