adelacvg / NS2VC

Unofficial implementation of NaturalSpeech2 for Voice Conversion and Text to Speech
221 stars 12 forks source link

about the pretrain when training #25

Open yyh565655555 opened 9 months ago

yyh565655555 commented 9 months ago

'HTTPSConnectionPool(host='huggingface.co', port=443): Max retries exceeded with url: /charactr/vocos-mel-24khz/resolve/main/config.yaml (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x000001B8B793E310>, 'Connection to huggingface.co timed out. (connect timeout=10)'))' thrown while requesting HEAD https://huggingface.co/charactr/vocos-mel-24khz/resolve/main/config.yaml Traceback (most recent call last): File "E:\pythoncode\NS2VC-vc-v2\train.py", line 3, in trainer = Trainer() File "E:\pythoncode\NS2VC-vc-v2\model.py", line 809, in init self.vocos = Vocos.from_pretrained("charactr/vocos-mel-24khz") File "D:\anaconda\envs\pytorch\lib\site-packages\vocos\pretrained.py", line 65, in from_pretrained config_path = hf_hub_download(repo_id=repo_id, filename="config.yaml") File "D:\anaconda\envs\pytorch\lib\site-packages\huggingface_hub\utils_validators.py", line 124, in _inner_fn return fn(*args, **kwargs) File "D:\anaconda\envs\pytorch\lib\site-packages\huggingface_hub\file_download.py", line 1211, in hf_hub_download raise LocalEntryNotFoundError( huggingface_hub.utils._errors.LocalEntryNotFoundError: Connection error, and we cannot find the requested files in the disk cache. Please try again or make sure your Internet connection is on.

sorry to bother you again, when i was traning, it seems that the download of pretrain of vocos fails, but my network is ok, how can i fix it?

adelacvg commented 9 months ago

You can download and load the model from Hugging Face yourself. Modify the function from_pretrained in the Vocos class to the model's local path. Hope this helps you.

yyh565655555 commented 8 months ago

sorry to bother again, i want to know the details of loading local model, JV$(B)90(P9HO3BFXZUZQ95 ~D A_F%J)NMO}PR7F( 3JGJ