module 'utils' has no attribute 'HParams'
nux1111 opened this issue · 1 comments
Error occurred when executing GPT_SOVITS_TTS:
module 'utils' has no attribute 'HParams'
File "C:\Users\nux\Desktop\ComfyUI_windows_portable\ComfyUI\execution.py", line 151, in recursive_execute
output_data, output_ui = get_output_data(obj, input_data_all)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\nux\Desktop\ComfyUI_windows_portable\ComfyUI\execution.py", line 81, in get_output_data
return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\nux\Desktop\ComfyUI_windows_portable\ComfyUI\execution.py", line 74, in map_node_over_list
results.append(getattr(obj, func)(**slice_dict(input_data_all, i)))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\nux\Desktop\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-GPT_SoVITS\nodes.py", line 95, in get_tts_wav
get_tts_wav(renfer_audio,prompt_text,prompt_language,
File "C:\Users\nux\Desktop\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-GPT_SoVITS\inference.py", line 128, in get_tts_wav
vq_model, hps = change_sovits_weights(sovits_weight)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\nux\Desktop\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-GPT_SoVITS\inference.py", line 84, in change_sovits_weights
dict_s2 = torch.load(sovits_path, map_location="cpu")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\nux\Desktop\ComfyUI_windows_portable\python_embeded\Lib\site-packages\torch\serialization.py", line 1026, in load
return _load(opened_zipfile,
^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\nux\Desktop\ComfyUI_windows_portable\python_embeded\Lib\site-packages\torch\serialization.py", line 1438, in _load
result = unpickler.load()
^^^^^^^^^^^^^^^^
File "pickle.py", line 1213, in load
File "pickle.py", line 1529, in load_global
File "C:\Users\nux\Desktop\ComfyUI_windows_portable\python_embeded\Lib\site-packages\torch\serialization.py", line 1431, in find_class
return super().find_class(mod_name, name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\nux\Desktop\ComfyUI_windows_portable\python_embeded\Lib\site-packages\pytorch_lightning_graveyard\legacy_import_unpickler.py", line 24, in find_class
return super().find_class(new_module, name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "pickle.py", line 1584, in find_class
how do i resolve this?
try on linux or readme windows