-
Notifications
You must be signed in to change notification settings - Fork 3
Description
Describe the bug
try to run python webui.py --port 50000 --model_dir pretrained_models/CosyVoice-300M
from FunAudioLLM#1075 (comment)
got
(cosyvoice) PS D:\cosyvoice> python webui.py --port 50000 --model_dir pretrained_models/CosyVoice-300M
Traceback (most recent call last): File "D:\cosyvoice\webui.py", line 25, in from cosyvoice.cli.cosyvoice import CosyVoice, CosyVoice2 File "D:\cosyvoice\cosyvoice\cli\cosyvoice.py",
ine 21, in from cosyvoice.cli.frontend import CosyVoiceFrontEnd File "D:\cosyvoice\cosyvoice\cli\frontend.py", line 17, in import onnxruntime File "C:\Users\bb\miniconda3\envs\cosyvoice\lib\site-packages\onnxruntime__init__.py",
line 61, in raise import_capi_exception File "C:\Users\bb\miniconda3\envs\cosyvoice\lib\site-packages\onnxruntime__init__.py",
line 24, in from onnxruntime.capi._pybind_state import ( File "C:\Users\bb\miniconda3\envs\cosyvoice\lib\site-packages\onnxruntime\capi_pybind_state.py",
line 32, in from .onnxruntime_pybind11_state import * # noqa
ImportError: DLL load failed while importing onnxruntime_pybind11_state: A dynamic link library (DLL) initialization routine failed.
looks like onnx is expecting something here. This is with an Intel Arc A770 using XPU. Presumably this means we need XPU provider.
initial research:
FunAudioLLM#893
https://github.com/eighteen-k-gold-malow/CosyVoice-XPU/commit/05bab70168b92976d70ffbe647e7b22762cfea86
which reveals.... directml too???
line 99 export_onnx
providers = ['DmlExecutionProvider']
interesting. though this is an immediate fail in webui, it ought to be presumed that it needs to be changed all the way down the pipe... this xpu fork seems to be very involved, will try to manage this tomorrow
https://github.com/eighteen-k-gold-malow/CosyVoice-XPU/commits/main/
may need to also add MPS providers????