在mac下推理报这个错误,麻烦作者给指导一下!
在网上查了一下这个错误,说是模型文件每下载完,但是我确定是下载完了的,本地文件大小和服务器模型训练完成保存的文件大小是一模一样的
Traceback (most recent call last):
File "/Users/youbo/PycharmProjects/demo/tts_demo/Bert-VITS2-Integration-package/inferencecmd.py", line 114, in = utils.load_checkpoint(args.model_dir, net_g, None, skip_optimizer=True)
File "/Users/youbo/PycharmProjects/demo/tts_demo/Bert-VITS2-Integration-package/utils.py", line 21, in load_checkpoint
checkpoint_dict = torch.load(checkpoint_path, map_location='cpu')
File "/Users/youbo/miniconda3/lib/python3.8/site-packages/torch/serialization.py", line 705, in load
with _open_zipfile_reader(opened_file) as opened_zipfile:
File "/Users/youbo/miniconda3/lib/python3.8/site-packages/torch/serialization.py", line 242, in init
super(_open_zipfile_reader, self).init(torch._C.PyTorchFileReader(name_or_buffer))
RuntimeError: PytorchStreamReader failed reading zip archive: invalid header or archive is corrupted
在mac下推理报这个错误,麻烦作者给指导一下! 在网上查了一下这个错误,说是模型文件每下载完,但是我确定是下载完了的,本地文件大小和服务器模型训练完成保存的文件大小是一模一样的 Traceback (most recent call last): File "/Users/youbo/PycharmProjects/demo/tts_demo/Bert-VITS2-Integration-package/inferencecmd.py", line 114, in
= utils.load_checkpoint(args.model_dir, net_g, None, skip_optimizer=True)
File "/Users/youbo/PycharmProjects/demo/tts_demo/Bert-VITS2-Integration-package/utils.py", line 21, in load_checkpoint
checkpoint_dict = torch.load(checkpoint_path, map_location='cpu')
File "/Users/youbo/miniconda3/lib/python3.8/site-packages/torch/serialization.py", line 705, in load
with _open_zipfile_reader(opened_file) as opened_zipfile:
File "/Users/youbo/miniconda3/lib/python3.8/site-packages/torch/serialization.py", line 242, in init
super(_open_zipfile_reader, self).init(torch._C.PyTorchFileReader(name_or_buffer))
RuntimeError: PytorchStreamReader failed reading zip archive: invalid header or archive is corrupted