GPT-SoVITS
GPT-SoVITS copied to clipboard
开启TTS推理WebUI时,控制台报错
如图,勾选“是否开启TTS推理WebUI”时,控制台报错,缺少的py文件看上去都在,操作系统win10,从123pan.com上下载的整合包“GPT-SoVITS-beta0306fix2.7z”,具体的报错日志如下:
J:\GPT-SoVITS>runtime\python.exe webui.py Running on local URL: http://0.0.0.0:9874 "J:\GPT-SoVITS\runtime\python.exe" GPT_SoVITS/inference_webui.py J:\GPT-SoVITS\runtime\lib\site-packages\transformers\utils\generic.py:441: UserWarning: torch.utils._pytree._register_pytree_node is deprecated. Please use torch.utils._pytree.register_pytree_node instead. _torch_pytree._register_pytree_node( J:\GPT-SoVITS\runtime\lib\site-packages\transformers\utils\generic.py:309: UserWarning: torch.utils._pytree._register_pytree_node is deprecated. Please use torch.utils._pytree.register_pytree_node instead. _torch_pytree._register_pytree_node( DEBUG:torio._extension.utils:Loading FFmpeg6 DEBUG:torio._extension.utils:Failed to load FFmpeg6 extension. Traceback (most recent call last): File "J:\GPT-SoVITS\runtime\lib\site-packages\torio_extension\utils.py", line 116, in _find_ffmpeg_extension ext = _find_versionsed_ffmpeg_extension(ffmpeg_ver) File "J:\GPT-SoVITS\runtime\lib\site-packages\torio_extension\utils.py", line 108, in _find_versionsed_ffmpeg_extension _load_lib(lib) File "J:\GPT-SoVITS\runtime\lib\site-packages\torio_extension\utils.py", line 94, in load_lib torch.ops.load_library(path) File "J:\GPT-SoVITS\runtime\lib\site-packages\torch_ops.py", line 933, in load_library ctypes.CDLL(path) File "ctypes_init.py", line 374, in init FileNotFoundError: Could not find module 'J:\GPT-SoVITS\runtime\Lib\site-packages\torio\lib\libtorio_ffmpeg6.pyd' (or one of its dependencies). Try using the full path with constructor syntax. DEBUG:torio._extension.utils:Loading FFmpeg5 DEBUG:torio._extension.utils:Failed to load FFmpeg5 extension. Traceback (most recent call last): File "J:\GPT-SoVITS\runtime\lib\site-packages\torio_extension\utils.py", line 116, in _find_ffmpeg_extension ext = _find_versionsed_ffmpeg_extension(ffmpeg_ver) File "J:\GPT-SoVITS\runtime\lib\site-packages\torio_extension\utils.py", line 108, in _find_versionsed_ffmpeg_extension _load_lib(lib) File "J:\GPT-SoVITS\runtime\lib\site-packages\torio_extension\utils.py", line 94, in load_lib torch.ops.load_library(path) File "J:\GPT-SoVITS\runtime\lib\site-packages\torch_ops.py", line 933, in load_library ctypes.CDLL(path) File "ctypes_init.py", line 374, in init FileNotFoundError: Could not find module 'J:\GPT-SoVITS\runtime\Lib\site-packages\torio\lib\libtorio_ffmpeg5.pyd' (or one of its dependencies). Try using the full path with constructor syntax. DEBUG:torio._extension.utils:Loading FFmpeg4 DEBUG:torio._extension.utils:Failed to load FFmpeg4 extension. Traceback (most recent call last): File "J:\GPT-SoVITS\runtime\lib\site-packages\torio_extension\utils.py", line 116, in _find_ffmpeg_extension ext = _find_versionsed_ffmpeg_extension(ffmpeg_ver) File "J:\GPT-SoVITS\runtime\lib\site-packages\torio_extension\utils.py", line 108, in _find_versionsed_ffmpeg_extension _load_lib(lib) File "J:\GPT-SoVITS\runtime\lib\site-packages\torio_extension\utils.py", line 94, in load_lib torch.ops.load_library(path) File "J:\GPT-SoVITS\runtime\lib\site-packages\torch_ops.py", line 933, in load_library ctypes.CDLL(path) File "ctypes_init.py", line 374, in init FileNotFoundError: Could not find module 'J:\GPT-SoVITS\runtime\Lib\site-packages\torio\lib\libtorio_ffmpeg4.pyd' (or one of its dependencies). Try using the full path with constructor syntax. DEBUG:torio._extension.utils:Loading FFmpeg DEBUG:torio._extension.utils:Failed to load FFmpeg extension. Traceback (most recent call last): File "J:\GPT-SoVITS\runtime\lib\site-packages\torio_extension\utils.py", line 116, in _find_ffmpeg_extension ext = _find_versionsed_ffmpeg_extension(ffmpeg_ver) File "J:\GPT-SoVITS\runtime\lib\site-packages\torio_extension\utils.py", line 106, in _find_versionsed_ffmpeg_extension raise RuntimeError(f"FFmpeg{version} extension is not available.") RuntimeError: FFmpeg extension is not available. J:\GPT-SoVITS\runtime\lib\site-packages\transformers\utils\generic.py:309: UserWarning: torch.utils._pytree._register_pytree_node is deprecated. Please use torch.utils._pytree.register_pytree_node instead. _torch_pytree._register_pytree_node( Some weights of the model checkpoint at GPT_SoVITS/pretrained_models/chinese-hubert-base were not used when initializing HubertModel: ['encoder.pos_conv_embed.conv.weight_g', 'encoder.pos_conv_embed.conv.weight_v']
- This IS expected if you are initializing HubertModel from the checkpoint of a model trained on another task or with another architecture (e.g. initializing a BertForSequenceClassification model from a BertForPreTraining model).
- This IS NOT expected if you are initializing HubertModel from the checkpoint of a model that you expect to be exactly identical (initializing a BertForSequenceClassification model from a BertForSequenceClassification model). Some weights of HubertModel were not initialized from the model checkpoint at GPT_SoVITS/pretrained_models/chinese-hubert-base and are newly initialized: ['encoder.pos_conv_embed.conv.parametrizations.weight.original1', 'encoder.pos_conv_embed.conv.parametrizations.weight.original0'] You should probably TRAIN this model on a down-stream task to be able to use it for predictions and inference. J:\GPT-SoVITS\runtime\lib\site-packages\torch\nn\utils\weight_norm.py:28: UserWarning: torch.nn.utils.weight_norm is deprecated in favor of torch.nn.utils.parametrizations.weight_norm. warnings.warn("torch.nn.utils.weight_norm is deprecated in favor of torch.nn.utils.parametrizations.weight_norm.") <All keys matched successfully> Number of parameter: 77.49M DEBUG:root:Using proactor: IocpProactor DEBUG:root:Using proactor: IocpProactor Running on local URL: http://0.0.0.0:9872
+1,我也是提示缺了个 module,但我看了下这个 module 是楼主自己定义的
ModuleNotFoundError: No module named 'text'
报错位置已经给出了,在 utils.py 文件的这里,ffmpeg的几个版本都在这个画横杠的键中,报错找不到ffmpeg,原因只有没有ffmpeg和路径不对。找到ffmpeg存放目录。
这样将地址添加到环境变量中
您好,同样的ffmpeg错误,按照下面的路径加了环境变量但还是报错。按照请问您解决了吗?
报错位置已经给出了,在 utils.py 文件的这里,ffmpeg的几个版本都在这个画横杠的键中,报错找不到ffmpeg,原因只有没有ffmpeg和路径不对。找到ffmpeg存放目录。
这样将地址添加到环境变量中
您好,同样的ffmpeg错误,按照下面的路径加了环境变量但还是报错。按照请问您解决了吗? 这得看看报错内容。