Plachtaa / VITS-fast-fine-tuning

This repo is a pipeline of VITS finetuning for fast speaker adaptation TTS, and many-to-many voice conversion
Apache License 2.0
4.69k stars 705 forks source link

STEP 3 总是报错 #472

Open BigTailWolf-Github opened 11 months ago

BigTailWolf-Github commented 11 months ago

STEP3: MoviePy - Writing audio in ./raw_audio/tianshi_574063.wav MoviePy - Done. Traceback (most recent call last): File "/content/VITS-fast-fine-tuning/VITS-fast-fine-tuning/VITS-fast-fine-tuning/VITS-fast-fine-tuning/scripts/denoise_audio.py", line 8, in with open("./configs/finetune_speaker.json", 'r', encoding='utf-8') as f: FileNotFoundError: [Errno 2] No such file or directory: './configs/finetune_speaker.json' error: XDG_RUNTIME_DIR not set in the environment. ALSA lib confmisc.c:855:(parse_card) cannot find card '0' ALSA lib conf.c:5178:(_snd_config_evaluate) function snd_func_card_inum returned error: No such file or directory ALSA lib confmisc.c:422:(snd_func_concat) error evaluating strings ALSA lib conf.c:5178:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory ALSA lib confmisc.c:1334:(snd_func_refer) error evaluating name ALSA lib conf.c:5178:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory ALSA lib conf.c:5701:(snd_config_expand) Evaluate error: No such file or directory ALSA lib pcm.c:2664:(snd_pcm_open_noupdate) Unknown PCM default ALSA lib confmisc.c:855:(parse_card) cannot find card '0' ALSA lib conf.c:5178:(_snd_config_evaluate) function snd_func_card_inum returned error: No such file or directory ALSA lib confmisc.c:422:(snd_func_concat) error evaluating strings ALSA lib conf.c:5178:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory ALSA lib confmisc.c:1334:(snd_func_refer) error evaluating name ALSA lib conf.c:5178:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory ALSA lib conf.c:5701:(snd_config_expand) Evaluate error: No such file or directory ALSA lib pcm.c:2664:(snd_pcm_open_noupdate) Unknown PCM default Traceback (most recent call last): File "/content/VITS-fast-fine-tuning/VITS-fast-fine-tuning/VITS-fast-fine-tuning/VITS-fast-fine-tuning/scripts/long_audio_transcribe.py", line 32, in with open("./configs/finetune_speaker.json", 'r', encoding='utf-8') as f: FileNotFoundError: [Errno 2] No such file or directory: './configs/finetune_speaker.json' Traceback (most recent call last): File "/content/VITS-fast-fine-tuning/VITS-fast-fine-tuning/VITS-fast-fine-tuning/VITS-fast-fine-tuning/scripts/short_audio_transcribe.py", line 60, in with open("./configs/finetune_speaker.json", 'r', encoding='utf-8') as f: FileNotFoundError: [Errno 2] No such file or directory: './configs/finetune_speaker.json' Traceback (most recent call last): File "/content/VITS-fast-fine-tuning/VITS-fast-fine-tuning/VITS-fast-fine-tuning/VITS-fast-fine-tuning/scripts/resample.py", line 20, in main() File "/content/VITS-fast-fine-tuning/VITS-fast-fine-tuning/VITS-fast-fine-tuning/VITS-fast-fine-tuning/scripts/resample.py", line 8, in main with open("./configs/finetune_speaker.json", 'r', encoding='utf-8') as f: FileNotFoundError: [Errno 2] No such file or directory: './configs/finetune_speaker.json'

我不确定这是否和STEP1的一部分错误有关、 STEP1: ...... Attempting uninstall: gradio Found existing installation: gradio 3.45.2 Uninstalling gradio-3.45.2: Successfully uninstalled gradio-3.45.2 ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts. cupy-cuda11x 11.0.0 requires numpy<1.26,>=1.20, but you have numpy 1.26.0 which is incompatible. gcsfs 2023.6.0 requires fsspec==2023.6.0, but you have fsspec 2023.9.2 which is incompatible. google-colab 1.0.0 requires pandas==1.5.3, but you have pandas 2.1.1 which is incompatible. notebook 6.5.5 requires pyzmq<25,>=17, but you have pyzmq 25.1.1 which is incompatible. numba 0.58.0 requires numpy<1.26,>=1.21, but you have numpy 1.26.0 which is incompatible. tensorflow 2.13.0 requires numpy<=1.24.3,>=1.22, but you have numpy 1.26.0 which is incompatible. tensorflow 2.13.0 requires typing-extensions<4.6.0,>=3.6.6, but you have typing-extensions 4.8.0 which is incompatible. Successfully installed aiofiles-23.2.1 altair-5.1.1 annotated-types-0.5.0 anyio-3.7.1 attrs-23.1.0 certifi-2023.7.22 charset-normalizer-3.3.0 click-8.1.7 contourpy-1.1.1 cycler-0.12.0 exceptiongroup-1.1.3 fastapi-0.103.2 ffmpy-0.3.1 filelock-3.12.4 fonttools-4.43.0 fsspec-2023.9.2 gradio-3.45.2 gradio-client-0.5.3 h11-0.14.0 httpcore-0.18.0 httpx-0.25.0 huggingface-hub-0.17.3 idna-3.4 importlib-resources-6.1.0 jinja2-3.1.2 jsonschema-4.19.1 jsonschema-specifications-2023.7.1 kiwisolver-1.4.5 markupsafe-2.1.3 matplotlib-3.8.0 numpy-1.26.0 orjson-3.9.7 packaging-23.2 pandas-2.1.1 pillow-10.0.1 pydantic-2.4.2 pydantic-core-2.10.1 pydub-0.25.1 pyparsing-3.1.1 python-dateutil-2.8.2 python-multipart-0.0.6 pytz-2023.3.post1 pyyaml-6.0.1 referencing-0.30.2 requests-2.31.0 rpds-py-0.10.3 semantic-version-2.10.0 six-1.16.0 sniffio-1.3.0 starlette-0.27.0 toolz-0.12.0 tqdm-4.66.1 typing-extensions-4.8.0 tzdata-2023.3 urllib3-2.0.6 uvicorn-0.23.2 websockets-11.0.3 Collecting imageio==2.4.1 ......

...... Uninstalling imageio-2.31.5: Successfully uninstalled imageio-2.31.5 _ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts. moviepy 1.0.3 requires imageio<3.0,>=2.5; pythonversion >= "3.4", but you have imageio 2.4.1 which is incompatible. Successfully installed imageio-2.4.1 ......

...... Uninstalling matplotlib-3.8.0: Successfully uninstalled matplotlib-3.8.0 ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts. google-colab 1.0.0 requires pandas==1.5.3, but you have pandas 2.0.3 which is incompatible. jax 0.4.14 requires numpy>=1.22, but you have numpy 1.21.6 which is incompatible. jaxlib 0.4.14+cuda11.cudnn86 requires numpy>=1.22, but you have numpy 1.21.6 which is incompatible. mizani 0.9.3 requires matplotlib>=3.5.0, but you have matplotlib 3.3.1 which is incompatible. plotnine 0.12.3 requires matplotlib>=3.6.0, but you have matplotlib 3.3.1 which is incompatible. plotnine 0.12.3 requires numpy>=1.23.0, but you have numpy 1.21.6 which is incompatible. tensorflow 2.13.0 requires numpy<=1.24.3,>=1.22, but you have numpy 1.21.6 which is incompatible. tensorflow 2.13.0 requires typing-extensions<4.6.0,>=3.6.6, but you have typing-extensions 4.8.0 which is incompatible. Successfully installed Cython-0.29.21 matplotlib-3.3.1 numpy-1.21.6 pandas-2.0.3 Requirement already satisfied: numpy in /usr/local/lib/python3.10/dist-packages (1.21.6) Collecting numpy Using cached numpy-1.26.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (18.2 MB) Installing collected packages: numpy Attempting uninstall: numpy Found existing installation: numpy 1.21.6 Uninstalling numpy-1.21.6: Successfully uninstalled numpy-1.21.6 ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts. cupy-cuda11x 11.0.0 requires numpy<1.26,>=1.20, but you have numpy 1.26.0 which is incompatible. mizani 0.9.3 requires matplotlib>=3.5.0, but you have matplotlib 3.3.1 which is incompatible. numba 0.58.0 requires numpy<1.26,>=1.21, but you have numpy 1.26.0 which is incompatible. plotnine 0.12.3 requires matplotlib>=3.6.0, but you have matplotlib 3.3.1 which is incompatible. tensorflow 2.13.0 requires numpy<=1.24.3,>=1.22, but you have numpy 1.26.0 which is incompatible. tensorflow 2.13.0 requires typing-extensions<4.6.0,>=3.6.6, but you have typing-extensions 4.8.0 which is incompatible. Successfully installed numpy-1.26.0 Collecting numba Using cached numba-0.58.0-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (3.6 MB) Collecting llvmlite<0.42,>=0.41.0dev0 (from numba) Using cached llvmlite-0.41.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (43.6 MB) Collecting numpy<1.26,>=1.21 (from numba) Using cached numpy-1.25.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (18.2 MB) Installing collected packages: numpy, llvmlite, numba Attempting uninstall: numpy Found existing installation: numpy 1.26.0 Uninstalling numpy-1.26.0: Successfully uninstalled numpy-1.26.0 Attempting uninstall: llvmlite Found existing installation: llvmlite 0.41.0 Uninstalling llvmlite-0.41.0: Successfully uninstalled llvmlite-0.41.0 Attempting uninstall: numba Found existing installation: numba 0.58.0 Uninstalling numba-0.58.0: Successfully uninstalled numba-0.58.0 ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts. mizani 0.9.3 requires matplotlib>=3.5.0, but you have matplotlib 3.3.1 which is incompatible. plotnine 0.12.3 requires matplotlib>=3.6.0, but you have matplotlib 3.3.1 which is incompatible. tensorflow 2.13.0 requires numpy<=1.24.3,>=1.22, but you have numpy 1.25.2 which is incompatible. tensorflow 2.13.0 requires typing-extensions<4.6.0,>=3.6.6, but you have typing-extensions 4.8.0 which is incompatible. Successfully installed llvmlite-0.41.0 numba-0.58.0 numpy-1.25.2 ......

dbv commented 11 months ago

@BigTailWolf-Github 来我教你 vx:YWJuZXJ4aAo=

i255979 commented 10 months ago

FileNotFoundError: [Errno 2] No such file or directory: './configs/finetune_speaker.json'

你这个是忘记把对应的配置文件下载导致的(注意,不同语言支持CJ,CJE,C,下面的脚本要对应替换 wget https://huggingface.co/datasets/Plachta/sampled_audio4ft/resolve/main/VITS-Chinese/config.json -O ./configs/finetune_speaker.json