#5212 TaskCfgVTT(uuid='82a8940b71', name='D:/Pretreatment/DhryzIndo0111.mp4', dirname='D:/Pretreatment', noextname='DhryzIndo0

52.192* Posted at: 2 hours ago

[Errno 2] No such file or directory: 'F:\win-pyvideotrans-v4.02-0615\models\chatterbox\ve.pt'[faster-whisper(本地内置), Google(免费), ChatterBox(本地内置)]
Traceback (most recent call last):
File "videotrans\task\only_one.py", line 87, in run
File "videotrans\task\trans_create.py", line 679, in dubbing
File "videotrans\task\trans_create.py", line 1001, in _tts
File "videotrans\tts\__init__.py", line 184, in run
File "videotrans\tts\_base.py", line 92, in run
File "videotrans\tts\_chatterbox.py", line 34, in _exec
File "chatterbox\mtl_tts.py", line 174, in from_local

torch.load(ckpt_dir / "ve.pt", map_location=map_location, weights_only=True)

File "torch\serialization.py", line 1479, in load

with _open_file_like(f, "rb") as opened_file:

File "torch\serialization.py", line 759, in _open_file_like

return _open_file(name_or_buffer, mode)

File "torch\serialization.py", line 740, in init

super().__init__(open(name, mode))

FileNotFoundError: [Errno 2] No such file or directory: 'F:\win-pyvideotrans-v4.02-0615\models\chatterbox\ve.pt'
TaskCfgVTT(uuid='82a8940b71', name='D:/Pretreatment/DhryzIndo0111.mp4', dirname='D:/Pretreatment', noextname='DhryzIndo0111', basename='DhryzIndo0111.mp4', ext='mp4', target_dir='D:/Pretreatment/_video_out/DhryzIndo0111-mp4', cache_folder='F:/win-pyvideotrans-v4.02-0615/tmp/48584/82a8940b71', is_cuda=True, source_language='简体中文', source_language_code='zh-cn', source_sub='D:/Pretreatment/_video_out/DhryzIndo0111-mp4/zh-cn.srt', source_wav='F:/win-pyvideotrans-v4.02-0615/tmp/48584/82a8940b71/zh-cn.wav', source_wav_output='D:/Pretreatment/_video_out/DhryzIndo0111-mp4/zh-cn.m4a', target_language='简体中文', target_language_code='zh-cn', target_sub='D:/Pretreatment/_video_out/DhryzIndo0111-mp4/zh-cn.srt', target_wav='F:/win-pyvideotrans-v4.02-0615/tmp/48584/82a8940b71/target-dubbing.wav', target_wav_output='D:/Pretreatment/_video_out/DhryzIndo0111-mp4/zh-cn-dubbing.m4a', translate_type=0, tts_type=7, volume='+0%', pitch='+0Hz', voice_rate='+0%', voice_role='clone', voice_autorate=False, video_autorate=False, remove_silent_mid=False, align_sub_audio=True, detect_language='zh-cn', recogn_type=0, model_name='large-v3-turbo', shibie_audio=None, remove_noise=False, enable_diariz=False, nums_diariz=0, rephrase=0, fix_punc=0, subtitle_language=None, app_mode='biaozhun', subtitles='', targetdir_mp4='D:/Pretreatment/_video_out/DhryzIndo0111-mp4/DhryzIndo0111.mp4', novoice_mp4='F:/win-pyvideotrans-v4.02-0615/tmp/48584/82a8940b71/novoice.mp4', is_separate=False, embed_bgm=False, instrument='F:/win-pyvideotrans-v4.02-0615/tmp/48584/82a8940b71/instrument.wav', vocal='F:/win-pyvideotrans-v4.02-0615/tmp/48584/82a8940b71/vocal.wav', clear_cache=True, background_music='', subtitle_type=1, only_out_mp4=False, recogn2pass=False, output_srt=0, copysrt_rawvideo=False, loop_backaudio=1, backaudio_volume=0.8)


=
system:Windows-10-10.0.19045-SP0
version:v4.02
frozen:True
language:zh
root_dir:F:/win-pyvideotrans-v4.02-0615

1 Replies

这是由于 ChatterBox(本地内置) 配音渠道的模型文件 ve.pt 缺失导致。首次使用该渠道时需要自动下载模型,可能因网络中断或权限问题未完成。

解决办法:

  1. 检查 F:\win-pyvideotrans-v4.02-0615\models\chatterbox\ 目录是否存在。若不存在或缺少 ve.pt,请删除该 chatterbox 文件夹。
  2. 重新启动软件,再次执行配音任务,让软件自动重新下载模型(需保持网络畅通,首次下载约需数分钟)。
  3. 若自动下载仍失败,可手动下载模型文件(包含 ve.pt 在内的所有文件)并放入 models/chatterbox/ 目录:

请查阅相关文档:

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. Dondate: ko-fi.com/jianchang512

Related resource