[2noise/ChatTTS]Load Model这一步报错UnpicklingError: invalid load key, 'v'

2024-06-12 898 views
7

Load Model这一步报错:UnpicklingError: invalid load key, 'v'

截屏2024-05-31 11 38 19

回答

7

encountered the same problem,Is there a problem with the models version? models git clone https://huggingface.co/2Noise/ChatTTS.git models

error log: WARNING:ChatTTS.utils.gpu_utils:No GPU found, use CPU instead INFO:ChatTTS.core:use cpu Traceback (most recent call last): File "/Users/jmingzhang/Desktop/work/company/go/src/example/tts/ChatTTS-webui/api/base.py", line 33, in chat.load_models(source='local', local_path=model_path) File "/Users/jmingzhang/Desktop/work/company/go/src/example/tts/ChatTTS-webui/api/ChatTTS/ChatTTS/core.py", line 61, in load_models self._load({k: os.path.join(download_path, v) for k, v in OmegaConf.load(os.path.join(download_path, 'config', 'path.yaml')).items()}, kwargs) File "/Users/jmingzhang/Desktop/work/company/go/src/example/tts/ChatTTS-webui/api/ChatTTS/ChatTTS/core.py", line 84, in _load vocos.load_state_dict(torch.load(vocos_ckpt_path)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/anaconda3/lib/python3.11/site-packages/torch/serialization.py", line 1040, in load return _legacy_load(opened_file, map_location, pickle_module, pickle_load_args) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/anaconda3/lib/python3.11/site-packages/torch/serialization.py", line 1258, in _legacy_load magic_number = pickle_module.load(f, pickle_load_args) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ _pickle.UnpicklingError: invalid load key, 'v'.