octimot/StoryToolkitAI

Error message just before Transcribe FileNotFoundError torch\hub\snakers4_silero-vad_master\

Paddywack0 opened this issue · 5 comments

Describe the bug
I am getting an error message whilst trying to transcribe:

INFO: Pre-detecting speech intervals in Transcription of Brian Rescue Centre Pickups 2024.wav.
ERROR: Unable to execute task <bound method ToolkitOps.whisper_transcribe of <storytoolkitai.core.toolkit_ops.toolkit_ops.ToolkitOps object at 0x000002B677BFEBF0>> for queue item 1705662033.750367
Traceback (most recent call last):
File "storytoolkitai\core\toolkit_ops\processing_queue.py", line 735, in execute_item_tasks
File "storytoolkitai\core\toolkit_ops\toolkit_ops.py", line 1884, in whisper_transcribe
File "storytoolkitai\core\toolkit_ops\toolkit_ops.py", line 1759, in _split_audio_into_segments
File "storytoolkitai\core\toolkit_ops\toolkit_ops.py", line 785, in get_speech_intervals
File "torch\hub.py", line 558, in load
model = _load_local(repo_or_dir, model, *args, **kwargs)
File "torch\hub.py", line 584, in _load_local
hub_module = _import_module(MODULE_HUBCONF, hubconf_path)
File "torch\hub.py", line 98, in _import_module
spec.loader.exec_module(module)
File "", line 879, in exec_module
File "", line 1016, in get_code
File "", line 1073, in get_data
FileNotFoundError: [Errno 2] No such file or directory: 'C:\Users\Nick/.cache\torch\hub\snakers4_silero-vad_master\hubconf.py'

This is after a clean re-install of v0.19.5 on Win 10 machine where Storykit has previously worked fine.

To Reproduce
Steps to reproduce the behavior:
Hit Transcribe timeline from Resolve.
Resolve creates .wav file from template
Select default En model etc.
Hit transcribe
Error appears in Console.

Expected behavior
Normal transcription as before

Log file
Please include th
app.log
e app.log file - you can find it by clicking on File -> Configuration Directory

Screenshots
If possible, add screenshots to help explain your problem.

System (please complete the following information):

  • OS: Win10
  • Python versions installed on machine: [e.g. 3.9.13]
  • StoryToolkitAI Version 0.19.

Additional context
Anything else that is relevant here.

This might be related with OS Permission error.

If that doesn't work, try to manually delete the cache folder C:\Users\Nick/.cache\torch\hub\snakers4_silero-vad_master\ and see if you still get the error.

Cheers!

Sorry, wrong reference, I meant the OS Permission error

Thanks for pointing this out.

I'll check to see if there's a way to clean the cache directly from the app if something like this happens.