#1430 Traceback (most recent call last): File "F:\PyV\videotrans\separate\st.py", line 22, in uvrpre_fun = func( ^^

2409:8a55* Posted at: 8 hours ago 👁12

Traceback (most recent call last):
File "F:\PyV\videotrans\separate\st.py", line 22, in uvr

pre_fun = func(
          ^^^^^

File "F:\PyV\videotrans\separate\vr.py", line 29, in init

mp = ModelParameters(f"{config.ROOT_DIR}/uvr5_weights/modelparams/2band_44100_lofi.json")
     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "F:\PyV\videotrans\separate\lib_v5\model_param_init.py", line 53, in init

with open(config_path, "r") as f:
     ^^^^^^^^^^^^^^^^^^^^^^

FileNotFoundError: [Errno 2] No such file or directory: 'F:/PyV/uvr5_weights/modelparams/2band_44100_lofi.json'

Traceback (most recent call last):
File "F:\PyV\videotrans\separate\st.py", line 22, in uvr

pre_fun = func(
          ^^^^^

File "F:\PyV\videotrans\separate\vr.py", line 29, in init

mp = ModelParameters(f"{config.ROOT_DIR}/uvr5_weights/modelparams/2band_44100_lofi.json")
     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "F:\PyV\videotrans\separate\lib_v5\model_param_init.py", line 53, in init

with open(config_path, "r") as f:
     ^^^^^^^^^^^^^^^^^^^^^^

FileNotFoundError: [Errno 2] No such file or directory: 'F:/PyV/uvr5_weights/modelparams/2band_44100_lofi.json'

1 Replies

人声分离失败是因为缺少必要的模型文件 2band_44100_lofi.json。该文件应该位于软件根目录下的 uvr5_weights/modelparams/ 文件夹中。

解决方案:

  1. 检查软件完整性:请确认您下载的是完整的软件包(约2.5G),而不是仅下载了升级包。如果是从官网下载的预打包版,解压后应包含 uvr5_weights 这个文件夹。
  2. 重新下载完整包:如果确认缺失该文件夹,请从官方下载地址(https://pyvideotrans.com/downpackage)重新下载完整的 Windows 预打包版本。
  3. 手动放置文件(不推荐):如果您能找到缺失的 .json 文件,请将其放入 F:/PyV/uvr5_weights/modelparams/ 路径下。但最稳妥的方式还是重新下载完整包。

请确保软件解压路径为纯英文,且不要解压到需要管理员权限的系统目录(如 C:/Program Files)。

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.

Donate: https://ko-fi.com/jianchang512

Trending Questions