-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
faster模式使用cuda报错 #737
Comments
same problem, all drivers installed, cuda 124 , cudnnn , nvidia-smi works. dont know how solve |
右上角 保存到 手动选个位置。再试试 |
ideo:244kB audio:35kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 1.171715% (venv) root@pruebaD:~/pyvideotrans# nvidia-smi +-----------------------------------------------------------------------------------------+ |
pip3 install --reinstall-force pyside6 retry update driver |
出错信息

使用faster-whisper在cuda下报错,提示“没有识别到任何说话声”。使用openai-whisper在cuda下不报错。两者使用cpu进行识别都不报错
复现步骤
识别字幕并翻译
faster模式报错,openai模式不报错
large-v3
操作系统
软件左上角版本号数字
v3.53
报错log
2025-02-20 08:58:03,414 - VideoTrans - INFO - start
2025-02-20 08:58:04,327 - VideoTrans - INFO - 开始处理
2025-02-20 08:58:04,341 - VideoTrans - INFO - self.cfg={'cache_folder': '/home/Software/VideoTrans/pyvideotrans-main/tmp/6bfac8a00a', 'target_dir': '/home//下载/_video_out/123', 'remove_noise': False, 'detect_language': 'ja', 'subtitle_language': None, 'source_language_code': 'ja', 'target_language_code': None, 'source_sub': '/home/下载/_video_out/123/ja.srt', 'target_sub': None, 'source_wav': '/home/Software/VideoTrans/pyvideotrans-main/tmp/6bfac8a00a/ja.m4a', 'source_wav_output': '/home/下载/_video_out/123/ja.m4a', 'target_wav': '', 'target_wav_output': '', 'novoice_mp4': '/home/Software/VideoTrans/pyvideotrans-main/tmp/6bfac8a00a/novoice.mp4', 'targetdir_mp4': '/home/下载/_video_out/123/123.mp4', 'instrument': None, 'vocal': None, 'shibie_audio': '/home/下载/_video_out/123/shibie.wav', 'background_music': None, 'app_mode': 'tiqu', 'subtitle_type': 0, 'append_video': False, 'only_video': False, 'volume': '0%', 'pitch': '0Hz', 'voice_rate': '+0%', 'translate_type': 1, 'source_language': '日语', 'target_language': '-', 'tts_type': 0, 'voice_role': 'No', 'recogn_type': 0, 'model_name': 'large-v3-turbo', 'split_type': 'all', 'voice_autorate': False, 'video_autorate': True, 'is_separate': False, 'cuda': True, 'back_audio': '', 'clear_cache': False, 'copysrt_rawvideo': False, 'subtitles': '', 'name': '/home/下载/123.m4a', 'dirname': '/home/下载', 'basename': '123.m4a', 'noextname': '123', 'ext': 'm4a', 'uuid': '6bfac8a00a'}
2025-02-20 08:58:04,343 - VideoTrans - INFO - forbid
2025-02-20 08:58:04,344 - VideoTrans - INFO - 开始处理
2025-02-20 08:58:04,824 - VideoTrans - INFO - force_cpu=False,cmd=['ffmpeg', '-hide_banner', '-ignore_unknown', '-y', '-i', '/home/下载/123.m4a', '-vn', '-ac', '1', '-b:a', '192k', '-c:a', 'aac', '/home/Software/VideoTrans/pyvideotrans-main/tmp/6bfac8a00a/ja.m4a']
2025-02-20 08:58:09,062 - VideoTrans - INFO - force_cpu=False,cmd=['ffmpeg', '-hide_banner', '-ignore_unknown', '-y', '-i', '/home/Software/VideoTrans/pyvideotrans-main/tmp/6bfac8a00a/ja.m4a', '-ac', '1', '-ar', '16000', '/home//下载/_video_out/123/shibie.wav']
2025-02-20 08:58:09,832 - VideoTrans - INFO - 开始进行语音识别
2025-02-20 08:58:20,710 - VideoTrans - INFO - large-v3-turbo Loaded
2025-02-20 08:58:23,765 - VideoTrans - ERROR - 没有识别到任何说话声
Traceback (most recent call last):
File "/home/Software/VideoTrans/pyvideotrans-main/videotrans/recognition/_base.py", line 73, in run
return self._exec()
File "/home/Software/VideoTrans/pyvideotrans-main/videotrans/recognition/_overall.py", line 138, in _exec
raise Exception(self.error)
Exception: 没有识别到任何说话声
2025-02-20 08:58:23,768 - VideoTrans - ERROR - 没有识别到任何说话声
2025-02-20 08:58:23,769 - VideoTrans - ERROR - 没有识别到任何说话声('没有识别到任何说话声',)
2025-02-20 08:58:23,837 - VideoTrans - ERROR - 没有识别到任何说话声
Traceback (most recent call last):
File "/home/Software/VideoTrans/pyvideotrans-main/videotrans/task/job.py", line 77, in run
trk.recogn()
File "/home/Software/VideoTrans/pyvideotrans-main/videotrans/task/trans_create.py", line 330, in recogn
raw_subtitles = run_recogn(
File "/home/Software/VideoTrans/pyvideotrans-main/videotrans/recognition/init.py", line 215, in run
return FasterAll(**kwargs).run()
File "/home/Software/VideoTrans/pyvideotrans-main/videotrans/recognition/_base.py", line 73, in run
return self._exec()
File "/home/Software/VideoTrans/pyvideotrans-main/videotrans/recognition/_overall.py", line 138, in _exec
raise Exception(self.error)
Exception: 没有识别到任何说话声
2025-02-20 08:58:23,838 - VideoTrans - ERROR - 语音识别阶段出错:没有识别到任何说话声
The text was updated successfully, but these errors were encountered: