#2923 TaskCfg(cache_folder='G:/AI2/win-pyvideotrans-v3.95/tmp/7372/cf6deccdcf', target_dir='H:/【MOD】原子之心FOV/tradinghub', remov

42.200* Posted at: 3 hours ago 👁7

程序内部错误:'float' object cannot be interpreted as an integer
Traceback (most recent call last):
File "videotrans\task\job.py", line 249, in run
File "videotrans\task\_dubbing.py", line 273, in align
File "videotrans\task\_rate.py", line 277, in run
File "videotrans\task\_rate.py", line 579, in _execute_audio_speedup_rubberband
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='G:/AI2/win-pyvideotrans-v3.95/tmp/7372/cf6deccdcf', target_dir='H:/【MOD】原子之心FOV/tradinghub', remove_noise=False, is_separate=False, detect_language=None, subtitle_language=None, source_language=None, target_language=None, source_language_code=None, target_language_code='zh-cn', source_sub=None, target_sub='H:/【MOD】原子之心FOV/tradinghub/480_translated.srt', source_wav=None, source_wav_output=None, target_wav='H:/【MOD】原子之心FOV/tradinghub/480_translated.mp3', target_wav_output=None, subtitles='', novoice_mp4=None, noextname='480_translated', shibie_audio=None, 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='Xiaoyi(Female/CN)', copysrt_rawvideo=False, clear_cache=False, translate_type=None, tts_type=0, recogn_type=None, model_name=None, voice_autorate=True, video_autorate=False, cuda=False, name='H:/【MOD】原子之心FOV/tradinghub/480_translated.srt', basename='480_translated.srt', ext='srt', dirname='H:/【MOD】原子之心FOV/tradinghub', shound_del_name=None, uuid='cf6deccdcf', remove_silent_mid=False, align_sub_audio=False, enable_diariz=False, nums_diariz=0, rephrase=2, only_out_mp4=False, fix_punc=False, recogn2pass=False)


=
system:Windows-10-10.0.26200-SP0
version:v3.95
frozen:True
language:zh
root_dir:G:/AI2/win-pyvideotrans-v3.95

1 Replies

这是由于 v3.95 版本中一个已知的 bug 导致的,当系统核心数较多时,在音频加速处理阶段会出现进程池初始化错误。

解决方案

  1. 打开 pyVideoTrans 软件。
  2. 点击顶部菜单栏的 “工具” -> “高级选项”
  3. 在弹出的窗口中,找到 “通用设置” 下的 “最大进程数”
  4. 将数值修改为 2。如果你的 CPU 核心数大于 16,可以尝试设置为 48
  5. 点击 “保存” 并重启软件,然后重新执行任务。

请查阅相关文档:

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