#3037 TaskCfg(cache_folder='D:/win-pyvideotrans-v3.95/tmp/16712/6ca601c7a5', target_dir='D:/剪映剪辑完/WHAT do they WANT from me! C

203.10* Posted at: 15 days ago 👁35

语音识别阶段出错 [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\trans_create.py", line 358, 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:/win-pyvideotrans-v3.95/tmp/16712/6ca601c7a5', target_dir='D:/剪映剪辑完/WHAT do they WANT from me! Chaotic first days entering CHINA on a motorbike. S01E36-mp4', remove_noise=False, is_separate=False, detect_language='en', subtitle_language=None, source_language='英语', target_language='简体中文', source_language_code='en', target_language_code='zh-cn', source_sub='D:/剪映剪辑完/WHAT do they WANT from me! Chaotic first days entering CHINA on a motorbike. S01E36-mp4/en.srt', target_sub='D:/剪映剪辑完/WHAT do they WANT from me! Chaotic first days entering CHINA on a motorbike. S01E36-mp4/zh-cn.srt', source_wav='D:/win-pyvideotrans-v3.95/tmp/16712/6ca601c7a5/en.wav', source_wav_output='D:/剪映剪辑完/WHAT do they WANT from me! Chaotic first days entering CHINA on a motorbike. S01E36-mp4/en.m4a', target_wav='D:/win-pyvideotrans-v3.95/tmp/16712/6ca601c7a5/target.wav', target_wav_output='D:/剪映剪辑完/WHAT do they WANT from me! Chaotic first days entering CHINA on a motorbike. S01E36-mp4/zh-cn.m4a', subtitles='', novoice_mp4='D:/win-pyvideotrans-v3.95/tmp/16712/6ca601c7a5/novoice.mp4', noextname='WHAT do they WANT from me! Chaotic first days entering CHINA on a motorbike. S01E36', shibie_audio=None, targetdir_mp4='D:/剪映剪辑完/WHAT do they WANT from me! Chaotic first days entering CHINA on a motorbike. S01E36-mp4/WHAT do they WANT from me! Chaotic first days entering CHINA on a motorbike. S01E36.mp4', instrument=None, vocal=None, back_audio='', background_music=None, app_mode='tiqu', subtitle_type=0, volume='+0%', pitch='+0Hz', voice_rate='+0%', voice_role='No', copysrt_rawvideo=False, clear_cache=False, translate_type=2, tts_type=0, recogn_type=0, model_name='medium', voice_autorate=False, video_autorate=False, cuda=True, name='D:/WHAT do they WANT from me! Chaotic first days entering CHINA on a motorbike. S01E36.mp4', basename='WHAT do they WANT from me! Chaotic first days entering CHINA on a motorbike. S01E36.mp4', ext='mp4', dirname='D:/', shound_del_name=None, uuid='6ca601c7a5', remove_silent_mid=False, align_sub_audio=True, enable_diariz=False, nums_diariz=0, rephrase=0, only_out_mp4=False, fix_punc=False, recogn2pass=True)


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

1 Replies

这是 pyVideoTrans v3.95 版本的一个已知 bug。

解决方案

  1. 打开软件,进入菜单栏的“工具” -> “高级选项”。
  2. 在“通用设置”选项卡中,找到“最大进程数”设置项。
  3. 将数值修改为 2。如果你的电脑 CPU 核心数超过 16 核,可以尝试设置为 48
  4. 点击“保存”按钮,然后完全关闭并重启 pyVideoTrans 软件。

请查阅相关文档:

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