GPT-SoVITS: Training errors out

Trying to train few shot but i get errors because it’s not creating these files:

self.path2: logs/xxx/2-name2text.txt
self.path4: logs/xxx/4-cnhubert
self.path5: logs/xxx/5-wav32k
Traceback (most recent call last):
  File "x:\sovits\GPT_SoVITS\s2_train.py", line 402, in <module>
    main()
  File "x:\sovits\GPT_SoVITS\s2_train.py", line 53, in main
    mp.spawn(run, nprocs=n_gpus, args=(n_gpus, hps,))
  File "x:\sovits\runtime\lib\site-packages\torch\multiprocessing\spawn.py", line 239, in spawn
    return start_processes(fn, args, nprocs, join, daemon, start_method='spawn')
  File "x:\sovits\runtime\lib\site-packages\torch\multiprocessing\spawn.py", line 197, in start_processes
    while not context.join():
  File "x:\sovits\runtime\lib\site-packages\torch\multiprocessing\spawn.py", line 160, in join
    raise ProcessRaisedException(msg, error_index, failed_process.pid)
torch.multiprocessing.spawn.ProcessRaisedException:

-- Process 0 terminated with the following error:
Traceback (most recent call last):
  File "x:\sovits\runtime\lib\site-packages\torch\multiprocessing\spawn.py", line 69, in _wrap
    fn(i, *args)
  File "x:\sovits\GPT_SoVITS\s2_train.py", line 69, in run
    train_dataset = TextAudioSpeakerLoader(hps.data)########
  File "x:\sovits\GPT_SoVITS\module\data_utils.py", line 37, in __init__
    assert os.path.exists(self.path2)
AssertionError

in addition, where exactly do i place the xxx.list file?

About this issue

  • Original URL
  • State: closed
  • Created 5 months ago
  • Comments: 25 (9 by maintainers)

Commits related to this issue

Most upvoted comments

@whitescent

same encountered this error, is there a workaround?

The “huggingface_hub.utils._validators.HFValidationError: Repo id must be in the form ‘repo_name’ or ‘namespace/repo_name’: ‘GPT_SoVITS/pretrained_models/chinese-roberta-wwm-ext-large’. Use repo_type argument if needed.”

That error I fixed it by placing the huggingface models inside “GPT_SoVITS” folder. So repo name is “GPT-SoVITS” and inside that directory there is a another folder named “GPT_SoVITS” place the huggingface models with configs there.

As for the “FileNotFoundError: [Errno 2] No such file or directory: ‘logs/xxx/2-name2text-0.txt’”

That error I think it will fixed after you run the ASR tool. I haven’t tried that fix because I was trying to train in the cloud and the models were big and I couldn’t install git-lfs, so I gave up and left it for a another day.

Fixed now. Now it will concat to a whole file automatically.

Hey @HowcanoeWang how did you make the .list file ? The Text annotation file how did create it, did I miss some step because I don’t how to create it and no user guide since it’s new 😄

Use the ‘中文离线识别ASR’ tool to create the list file. But if you are not using that tool, simply create an empty txt file and rename to xxxx.list, and type the following format should also works: (I guess…)

/absolute/file/path/to/each/vocal1.wav||ZH|这边输入对应的文字1。
/absolute/file/path/to/each/vocal2.wav||ZH|这边输入对应的文字2。

Very labor-intensive, strongly recommend the ASR tool 图片

I didn’t downloaded the ASR models… So I only need the ASR model ? I don’t need the VAD and Punc model ? Thank you so much 😃

Fixed now. If you want to do Chinese ASR first and don’t donwload the model, now it will download it automatically.