You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
成功打开文件:D:/0software/video-subtitle-generator/test/test_cn.mp4
选择识别的语言: 自动检测
选择识别模式: 标准
['D:/0software/video-subtitle-generator/test/test_cn.mp4']
【处理中】开始生成字幕,此步骤可能花费较长时间,请耐心等待...
Exception in thread Thread-1 (task):
Traceback (most recent call last):
File "C:\Program Files\Python310\lib\threading.py", line 1016, in _bootstrap_inner
self.run()
File "C:\Program Files\Python310\lib\threading.py", line 953, in run
self._target(*self._args, **self._kwargs)
File "D:\0software\video-subtitle-generator\gui.py", line 175, in task
self.sg.run()
File "D:\0software\video-subtitle-generator\backend\main.py", line 227, in run
transcript = recognizer(data)
File "D:\0software\video-subtitle-generator\backend\main.py", line 37, in call
mel = whisper.log_mel_spectrogram(audio_data).to(self.model.device)
File "D:\0software\video-subtitle-generator\backend\whisper\audio.py", line 131, in log_mel_spectrogram
audio = torch.from_numpy(audio)
RuntimeError: Numpy is not available
使用了venv,不知道为什么会和系统上装的python有关系
The text was updated successfully, but these errors were encountered:
(venv) D:\0software\video-subtitle-generator>python backend/main.py
请输入文件完整路径:D:\0software\video-subtitle-generator\test\test_cn.mp4
运行程序
【处理中】开始生成字幕,此步骤可能花费较长时间,请耐心等待...
Traceback (most recent call last):
File "D:\0software\video-subtitle-generator\backend\main.py", line 275, in
sg.run()
File "D:\0software\video-subtitle-generator\backend\main.py", line 227, in run
transcript = recognizer(data)
File "D:\0software\video-subtitle-generator\backend\main.py", line 37, in call
mel = whisper.log_mel_spectrogram(audio_data).to(self.model.device)
File "D:\0software\video-subtitle-generator\backend\whisper\audio.py", line 131, in log_mel_spectrogram
audio = torch.from_numpy(audio)
RuntimeError: Numpy is not available
cykalet
changed the title
处理时报错
处理时报错RuntimeError: Numpy is not available
Dec 7, 2023
成功打开文件:D:/0software/video-subtitle-generator/test/test_cn.mp4
选择识别的语言: 自动检测
选择识别模式: 标准
['D:/0software/video-subtitle-generator/test/test_cn.mp4']
【处理中】开始生成字幕,此步骤可能花费较长时间,请耐心等待...
Exception in thread Thread-1 (task):
Traceback (most recent call last):
File "C:\Program Files\Python310\lib\threading.py", line 1016, in _bootstrap_inner
self.run()
File "C:\Program Files\Python310\lib\threading.py", line 953, in run
self._target(*self._args, **self._kwargs)
File "D:\0software\video-subtitle-generator\gui.py", line 175, in task
self.sg.run()
File "D:\0software\video-subtitle-generator\backend\main.py", line 227, in run
transcript = recognizer(data)
File "D:\0software\video-subtitle-generator\backend\main.py", line 37, in call
mel = whisper.log_mel_spectrogram(audio_data).to(self.model.device)
File "D:\0software\video-subtitle-generator\backend\whisper\audio.py", line 131, in log_mel_spectrogram
audio = torch.from_numpy(audio)
RuntimeError: Numpy is not available
使用了venv,不知道为什么会和系统上装的python有关系
The text was updated successfully, but these errors were encountered: