#5655 FileNotFoundError: No such file or directory:

172.237* Posted at: 13 hours ago

文件不存在:None:
Traceback (most recent call last):
File "videotrans\util\ListenVoice.py", line 19, in run
File "videotrans\tts\__init__.py", line 207, in run
File "videotrans\tts\_base.py", line 93, in run
File "videotrans\tts\_f5tts.py", line 120, in _exec
File "videotrans\tts\_f5tts.py", line 64, in init
File "D:\D-APP\win-pyvideotrans-v4.04-0704\_internal\f5_tts\infer\utils_infer.py", line 274, in load_model

model = load_checkpoint(model, ckpt_path, device, dtype=dtype, use_ema=use_ema)

File "D:\D-APP\win-pyvideotrans-v4.04-0704\_internal\f5_tts\infer\utils_infer.py", line 205, in load_checkpoint

checkpoint = load_file(ckpt_path, device=device)

File "safetensors\torch.py", line 313, in load_file
FileNotFoundError: No such file or directory: "D:/D-APP/win-pyvideotrans-v4.04-0704/models/models--SWivid--F5-TTS/F5TTS_v1_Base/model_1250000.safetensors"


=
system:Windows-10-10.0.26200-SP0
version:v4.04
frozen:True
language:zh
root_dir:D:/D-APP/win-pyvideotrans-v4.04-0704

1 Replies

该错误是因为 F5-TTS 模型文件未找到,模型路径指向 models/models--SWivid--F5-TTS/F5TTS_v1_Base/model_1250000.safetensors。这通常是首次使用时自动下载失败导致。

解决方法:

  1. 检查网络连接:确保网络畅通,能够访问 Hugging Face(如受限,可使用镜像或代理)。
  2. 手动下载模型:从 Hugging Face 仓库 SWivid/F5-TTS 下载 F5TTS_v1_Base 文件夹内的 model_1250000.safetensors 及其它必要文件,放置到 软件根目录/models/models--SWivid--F5-TTS/F5TTS_v1_Base/ 下。
  3. 重新启动软件:模型文件放好后重启 sp.exe
注意:如果使用的是国内网络,可尝试在软件菜单中配置代理(主界面底部“网络代理”栏),或手动从 Hugging Face 镜像站下载。
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