tmoroney / auto-subs

Generate subtitles using OpenAI Whisper in Davinci Resolve editing software.
https://tom-moroney.com/auto-subs/
MIT License
554 stars 33 forks source link

Script Error Causing Auto Subs to not start #60

Open IsReaverLIVE opened 2 months ago

IsReaverLIVE commented 2 months ago

Traceback (most recent call last): File "C:\ProgramData\Blackmagic Design\DaVinci Resolve\Fusion\Scripts\Utility\auto-subs.py", line 26, in import stable_whisper File "C:\Users\trent\AppData\Local\Programs\Python\Python312\Lib\site-packages\stable_whisper__init.py", line 1, in from .whisper_word_level import * File "C:\Users\trent\AppData\Local\Programs\Python\Python312\Lib\site-packages\stable_whisper\whisper_word_level__init__.py", line 2, in from .cli import cli File "C:\Users\trent\AppData\Local\Programs\Python\Python312\Lib\site-packages\stable_whisper\whisper_word_level\cli.py", line 9, in import torch File "C:\Users\trent\AppData\Local\Programs\Python\Python312\Lib\site-packages\torch\init__.py", line 148, in raise err OSError: [WinError 126] The specified module could not be found. Error loading "C:\Users\trent\AppData\Local\Programs\Python\Python312\Lib\site-packages\torch\lib\fbgemm.dll" or one of its dependencies.

mfgabriel92 commented 2 months ago

Try uninstalling torch, and then installing its version 2.3.0.

pip uninstall torch torchvision torchaudio

then

pip install torch==2.3.0 torchvision==0.18.0 torchaudio==2.3.0

It solved for me!