Skip to content
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

Speaker Detection Keeps Failing #187

Open
GypsyAcidQueen opened this issue Jul 25, 2024 · 2 comments
Open

Speaker Detection Keeps Failing #187

GypsyAcidQueen opened this issue Jul 25, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@GypsyAcidQueen
Copy link

GypsyAcidQueen commented Jul 25, 2024

When I try to run speaker detection in v 0.24, I get this error

ERROR: Unable to execute task <bound method ToolkitOps.speaker_detection of <storytoolkitai.core.toolkit_ops.toolkit_ops.ToolkitOps object at 0x000001F43005AD70>> for queue item TranslationofLiJingQiA.wav(SpeakerDetection)-1721905998.6038613
Traceback (most recent call last):
File "E:\StoryToolkitAI\StoryToolkitAI\storytoolkitai..\storytoolkitai\core\toolkit_ops\processing_queue.py", line 739, in execute_item_tasks
kwargs = task(**{**kwargs, **item})
File "E:\StoryToolkitAI\StoryToolkitAI\storytoolkitai..\storytoolkitai\core\toolkit_ops\toolkit_ops.py", line 1502, in speaker_detection
for resulting_segments, speaker_embeddings in detect_speaker_changes(
File "E:\StoryToolkitAI\StoryToolkitAI\storytoolkitai..\storytoolkitai\core\toolkit_ops\speaker_diarization.py", line 101, in detect_speaker_changes
model = PretrainedSpeakerEmbedding("speechbrain/spkrec-ecapa-voxceleb", device=torch.device(torch_device))
File "E:\StoryToolkitAI\venv\lib\site-packages\pyannote\audio\pipelines\speaker_verification.py", line 754, in PretrainedSpeakerEmbedding
return SpeechBrainPretrainedSpeakerEmbedding(
File "E:\StoryToolkitAI\venv\lib\site-packages\pyannote\audio\pipelines\speaker_verification.py", line 260, in init
self.classifier_ = SpeechBrain_EncoderClassifier.from_hparams(
File "E:\StoryToolkitAI\venv\lib\site-packages\speechbrain\pretrained\interfaces.py", line 467, in from_hparams
hparams_local_path = fetch(
File "E:\StoryToolkitAI\venv\lib\site-packages\speechbrain\pretrained\fetching.py", line 181, in fetch
destination.symlink_to(sourcepath)
File "C:\Users\Alex\AppData\Local\Programs\Python\Python310\lib\pathlib.py", line 1255, in symlink_to
self._accessor.symlink(target, self, target_is_directory)
OSError: [WinError 1314] A required privilege is not held by the client: 'C:\Users\Alex\.cache\huggingface\hub\models--speechbrain--spkrec-ecapa-voxceleb\snapshots\eac27266f68caa806381260bd44ace38b136c76a\hyperparams.yaml' -> 'C:\Users\Alex\.cache\torch\pyannote\speechbrain\hyperparams.yaml'

@GypsyAcidQueen GypsyAcidQueen added the bug Something isn't working label Jul 25, 2024
@GypsyAcidQueen
Copy link
Author

Update: it works fine in CMD with administrator privileges

@GypsyAcidQueen
Copy link
Author

Update: HOWEVER, group questions is throwing this error regardless of whether the CMD has administrator privileges or not.

ERROR: Unable to execute task <bound method ToolkitOps.group_questions of <storytoolkitai.core.toolkit_ops.toolkit_ops.ToolkitOps object at 0x00000189570B2920>> for queue item TranslationofLiJingQiA.wav(GroupQuestions)-1721907363.7646039
Traceback (most recent call last):
File "E:\StoryToolkitAI\venv\lib\site-packages\transformers\utils\hub.py", line 402, in cached_file
resolved_file = hf_hub_download(
File "E:\StoryToolkitAI\venv\lib\site-packages\huggingface_hub\utils_deprecation.py", line 101, in inner_f
return f(*args, **kwargs)
File "E:\StoryToolkitAI\venv\lib\site-packages\huggingface_hub\utils_validators.py", line 106, in inner_fn
validate_repo_id(arg_value)
File "E:\StoryToolkitAI\venv\lib\site-packages\huggingface_hub\utils_validators.py", line 160, in validate_repo_id
raise HFValidationError(
huggingface_hub.errors.HFValidationError: Repo id must use alphanumeric chars or '-', '', '.', '--' and '..' are forbidden, '-' and '.' cannot start or end the name, max length is 96: ''.

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "E:\StoryToolkitAI\StoryToolkitAI\storytoolkitai..\storytoolkitai\core\toolkit_ops\processing_queue.py", line 739, in execute_item_tasks
kwargs = task(**{**kwargs, **item})
File "E:\StoryToolkitAI\StoryToolkitAI\storytoolkitai..\storytoolkitai\core\toolkit_ops\toolkit_ops.py", line 2491, in group_questions
classified_question_segments = self.classify_segments(
File "E:\StoryToolkitAI\StoryToolkitAI\storytoolkitai..\storytoolkitai\core\toolkit_ops\toolkit_ops.py", line 2305, in classify_segments
classifier = pipeline('zero-shot-classification',
File "E:\StoryToolkitAI\venv\lib\site-packages\transformers\pipelines_init_.py", line 768, in pipeline
resolved_config_file = cached_file(
File "E:\StoryToolkitAI\venv\lib\site-packages\transformers\utils\hub.py", line 466, in cached_file
raise EnvironmentError(
OSError: Incorrect path_or_model_id: ''. Please provide either the path to a local folder or the repo_id of a model on the Hub.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant