svc-develop-team/so-vits-svc

[Help]: 特征检索在webui推理中无法使用

Open

#300 建立於 2023年7月13日

在 GitHub 查看
 (8 留言) (0 反應) (1 負責人)Python (4,513 fork)batch import
help wanted

倉庫指標

Star
 (23,713 star)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

请勾选下方的确认框。

  • 我已仔细阅读README.mdwiki中的Quick solution
  • 我已通过各种搜索引擎排查问题,我要提出的问题并不常见。
  • 我未在使用由第三方用户提供的一键包/环境包。

系统平台版本号

Windows 11 22H2

GPU 型号

RTX 3070Ti Laptop

Python版本

3.10.7

PyTorch版本

2.0.0+cu118

sovits分支

4.0(默认)

数据集来源(用于判断数据集质量)

语音

出现问题的环节或执行的命令

使用特征检索进行推理时

问题描述

在使用webui进行推理时,使用特征检索会报错,而聚类模型并不会出错。稍早前使用inference_main.py进行推理,特征检索也会报错

日志

Traceback (most recent call last):
  File "E:\so-vits-svc\webUI.py", line 205, in vc_fn
    output_file = vc_infer(output_format, sid, processed_audio, truncated_basename, vc_transform, auto_f0, cluster_ratio, slice_db, noise_scale, pad_seconds, cl_num, lg_num, lgr_num, f0_predictor, enhancer_adaptive_key, cr_threshold, k_step, use_spk_mix, second_encoding, loudness_envelope_adjustment)
  File "E:\so-vits-svc\webUI.py", line 144, in vc_infer
    _audio = model.slice_inference(
  File "E:\so-vits-svc\inference\infer_tool.py", line 460, in slice_inference
    out_audio, out_sr, out_frame = self.infer(spk, tran, raw_path,
  File "E:\so-vits-svc\inference\infer_tool.py", line 278, in infer
    c, f0, uv = self.get_unit_f0(wav, tran, cluster_infer_ratio, speaker, f0_filter,f0_predictor,cr_threshold=cr_threshold)
  File "E:\so-vits-svc\inference\infer_tool.py", line 233, in get_unit_f0
    self.big_npy = feature_index.reconstruct_n(0, feature_index.ntotal)
TypeError: in method 'Index_ntotal_get', argument 1 of type 'faiss::Index *'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "E:\so-vits-svc\venv\lib\site-packages\gradio\routes.py", line 414, in run_predict
    output = await app.get_blocks().process_api(
  File "E:\so-vits-svc\venv\lib\site-packages\gradio\blocks.py", line 1323, in process_api
    result = await self.call_function(
  File "E:\so-vits-svc\venv\lib\site-packages\gradio\blocks.py", line 1051, in call_function
    prediction = await anyio.to_thread.run_sync(
  File "E:\so-vits-svc\venv\lib\site-packages\anyio\to_thread.py", line 31, in run_sync
    return await get_asynclib().run_sync_in_worker_thread(
  File "E:\so-vits-svc\venv\lib\site-packages\anyio\_backends\_asyncio.py", line 937, in run_sync_in_worker_thread
    return await future
  File "E:\so-vits-svc\venv\lib\site-packages\anyio\_backends\_asyncio.py", line 867, in run
    result = context.run(func, *args)
  File "E:\so-vits-svc\webUI.py", line 211, in vc_fn
    raise gr.Error(e)
gradio.exceptions.Error: TypeError("in method 'Index_ntotal_get', argument 1 of type 'faiss::Index *'")

截图so-vits-svclogs/44k文件夹并粘贴到此处

/

补充说明

No response

貢獻者指南