Skip to content
This repository was archived by the owner on Oct 19, 2024. It is now read-only.
This repository was archived by the owner on Oct 19, 2024. It is now read-only.

本地推理运行inference_main.py时候报错,提示libtorchaudio相关依赖缺失 #195

@SatisfiedPeanut

Description

@SatisfiedPeanut

powershell报错提示为:
PS D:\VITS\so-vits-svc-44K\so-vits-svc-4.0> python inference_main.py -m "logs/44k/G_5600.pth" -c "configs/config.json" -n "CLEAN.wav" -s testM
Traceback (most recent call last):
File "D:\VITS\so-vits-svc-44K\so-vits-svc-4.0\inference_main.py", line 11, in
from inference import infer_tool
File "D:\VITS\so-vits-svc-44K\so-vits-svc-4.0\inference\infer_tool.py", line 8, in
from inference import slicer
File "D:\VITS\so-vits-svc-44K\so-vits-svc-4.0\inference\slicer.py", line 3, in
import torchaudio
File "D:\python_3.10.10\lib\site-packages\torchaudio_init_.py", line 1, in
from torchaudio import ( # noqa: F401
File "D:\python_3.10.10\lib\site-packages\torchaudio_extension.py", line 135, in
_init_extension()
File "D:\python_3.10.10\lib\site-packages\torchaudio_extension.py", line 105, in _init_extension
_load_lib("libtorchaudio")
File "D:\python_3.10.10\lib\site-packages\torchaudio_extension.py", line 52, in load_lib
torch.ops.load_library(path)
File "D:\python_3.10.10\lib\site-packages\torch_ops.py", line 573, in load_library
ctypes.CDLL(path)
File "D:\python_3.10.10\lib\ctypes_init
.py", line 374, in init
self._handle = _dlopen(self._name, mode)
FileNotFoundError: Could not find module 'D:\python_3.10.10\Lib\site-packages\torchaudio\lib\libtorchaudio.pyd' (or one of its dependencies). Try using the full path with constructor syntax.

出现了这样的报错,重新安装torchaudio未能解决

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions