#4628 TaskCfg(cache_folder='D:/Programs/win-pyvideotrans-v3.95/tmp/6676/4f1b7f6c0a', target_dir='D:/Programs/win-pyvideotrans-

2409:8a02* Posted at: 13 hours ago 👁20

语音识别阶段出错 [faster-whisper(本地)] 程序内部错误:'float' object cannot be interpreted as an integer
Traceback (most recent call last):
File "videotrans\task\job.py", line 106, in run
File "videotrans\task\_speech2text.py", line 156, in recogn
File "videotrans\recognition\__init__.py", line 276, in run
File "videotrans\recognition\_base.py", line 136, in run
File "videotrans\recognition\_overall.py", line 76, in _download
File "videotrans\recognition\_base.py", line 118, in _vad_split
File "videotrans\configure\_base.py", line 265, in _new_process
File "videotrans\process\signelobj.py", line 73, in submit_task_cpu
File "videotrans\process\signelobj.py", line 56, in get_executor_cpu
File "concurrent\futures\process.py", line 650, in init
File "concurrent\futures\process.py", line 165, in init
File "multiprocessing\queues.py", line 49, in init
File "multiprocessing\context.py", line 88, in BoundedSemaphore
File "multiprocessing\synchronize.py", line 145, in init
File "multiprocessing\synchronize.py", line 57, in init
TypeError: 'float' object cannot be interpreted as an integer
TaskCfg(cache_folder='D:/Programs/win-pyvideotrans-v3.95/tmp/6676/4f1b7f6c0a', target_dir='D:/Programs/win-pyvideotrans-v3.95/output/recogn', remove_noise=False, is_separate=False, detect_language='auto', subtitle_language=None, source_language=None, target_language=None, source_language_code=None, target_language_code=None, source_sub=None, target_sub='D:/Programs/win-pyvideotrans-v3.95/output/recogn/Reina.Ohara.The.Power.Outage.Of.Cock.Part.1.XXX.1080p.srt', source_wav=None, source_wav_output=None, target_wav=None, target_wav_output=None, subtitles='', novoice_mp4=None, noextname='Reina.Ohara.The.Power.Outage.Of.Cock.Part.1.XXX.1080p', shibie_audio='D:/Programs/win-pyvideotrans-v3.95/tmp/6676/4f1b7f6c0a/Reina.Ohara.The.Power.Outage.Of.Cock.Part.1.XXX.1080p-1779204845.9937696.wav', targetdir_mp4=None, instrument=None, vocal=None, back_audio=None, background_music=None, app_mode='biaozhun', subtitle_type=0, volume='+0%', pitch='+0Hz', voice_rate='+0%', voice_role=None, copysrt_rawvideo=False, clear_cache=False, translate_type=None, tts_type=None, recogn_type=0, model_name='small', voice_autorate=False, video_autorate=False, cuda=True, name='D:/Download/Reina.Ohara.The.Power.Outage.Of.Cock.Part.1.XXX.1080p.mp4', basename='Reina.Ohara.The.Power.Outage.Of.Cock.Part.1.XXX.1080p.mp4', ext='mp4', dirname='D:/Download', shound_del_name=None, uuid='4f1b7f6c0a', remove_silent_mid=False, align_sub_audio=True, enable_diariz=False, nums_diariz=0, rephrase=0, only_out_mp4=False, fix_punc=False, recogn2pass=False)


=
system:Windows-10-10.0.22631-SP0
version:v3.95
frozen:True
language:zh
root_dir:D:/Programs/win-pyvideotrans-v3.95

1 Replies

这是由于高级选项中的“最大进程数”或“GPU同时任务数”被错误设置为浮点数(如 5.0)导致的,必须为整数。

解决方案:

  1. 点击顶部菜单 工具/选项高级选项
  2. 通用设置 部分找到 最大进程数[重启生效]GPU同时任务数[重启生效]
  3. 确保这两个值均为整数(例如 42),不要带小数点(如 4.0 会引发此错误)。
  4. 修改后点击“保存”,关闭软件并重新启动。

如果问题仍然存在,请提供 logs/ 目录下最新的日志文件(底部约30行)以便进一步分析。

Post Your Reply
Open source and free maintenance is not easy. If this project is helpful to you, please consider making a small donation to help the project continue to maintain and update.

Related resource

Similar issues already exist