Paraworks/vits_with_chatgpt-gpt3

使用colab导出onnx的错误 (安装依赖时)

einsflash opened this issue · 4 comments

fatal: destination path 'vits_web_demo' already exists and is not an empty directory.
/content/vits_web_demo/export
Looking in indexes: https://pypi.org/simple, https://us-python.pkg.dev/colab-wheels/public/simple/
Requirement already satisfied: onnxruntime in /usr/local/lib/python3.8/dist-packages (1.14.0)
Requirement already satisfied: Cython in /usr/local/lib/python3.8/dist-packages (0.29.33)
Requirement already satisfied: packaging in /usr/local/lib/python3.8/dist-packages (from onnxruntime) (23.0)
Requirement already satisfied: coloredlogs in /usr/local/lib/python3.8/dist-packages (from onnxruntime) (15.0.1)
Requirement already satisfied: protobuf in /usr/local/lib/python3.8/dist-packages (from onnxruntime) (3.19.6)
Requirement already satisfied: sympy in /usr/local/lib/python3.8/dist-packages (from onnxruntime) (1.7.1)
Requirement already satisfied: flatbuffers in /usr/local/lib/python3.8/dist-packages (from onnxruntime) (23.1.21)
Requirement already satisfied: numpy>=1.21.6 in /usr/local/lib/python3.8/dist-packages (from onnxruntime) (1.22.4)
Requirement already satisfied: humanfriendly>=9.1 in /usr/local/lib/python3.8/dist-packages (from coloredlogs->onnxruntime) (10.0)
Requirement already satisfied: mpmath>=0.19 in /usr/local/lib/python3.8/dist-packages (from sympy->onnxruntime) (1.2.1)
Looking in indexes: https://pypi.org/simple, https://us-python.pkg.dev/colab-wheels/public/simple/
Collecting pyopenjtalk
Using cached pyopenjtalk-0.3.0.tar.gz (1.5 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Collecting unidecode
Using cached Unidecode-1.3.6-py3-none-any.whl (235 kB)
Collecting pypinyin
Using cached pypinyin-0.48.0-py2.py3-none-any.whl (1.4 MB)
Requirement already satisfied: jieba in /usr/local/lib/python3.8/dist-packages (from -r requirements.txt (line 5)) (0.42.1)
Collecting cn2an
Using cached cn2an-0.5.19-py3-none-any.whl (19 kB)
Requirement already satisfied: tqdm in /usr/local/lib/python3.8/dist-packages (from -r requirements.txt (line 10)) (4.64.1)
Collecting pycodestyle==2.6.0
Using cached pycodestyle-2.6.0-py2.py3-none-any.whl (41 kB)
Collecting pyflakes==2.2.0
Using cached pyflakes-2.2.0-py2.py3-none-any.whl (66 kB)
Collecting sklearn
Using cached sklearn-0.0.post1.tar.gz (3.6 kB)
error: subprocess-exited-with-error

× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.
Preparing metadata (setup.py) ... error
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

改成 scikit-learn 试一下

改了一下txt可以运行了
但是又有一个问题

!python vits/export_onnx.py --checkpoint /drive/MyDrive/44k/21600.pth --cfg /drive/MyDrive/44k/config.json --onnx_model model/model.onnx

我用的是innnky / so-vits-svc colab训练的模型,这个是vits,我不太懂不知道是不是这个问题

/content/vits_web_demo/export
Traceback (most recent call last):
File "vits/export_onnx.py", line 140, in
main()
File "vits/export_onnx.py", line 77, in main
phone_num, num_speakers = get_data_from_cfg(args.cfg)
File "vits/export_onnx.py", line 62, in get_data_from_cfg
symbols = data["symbols"]
KeyError: 'symbols'

兄啊,这so-vits-svc不是用来tts的

哈哈好的,我以为转onnx模型就可以用在tts上