Failed to load discriminator D_0.pth

#1
by litagin - opened

Thank you for great works and sharing the pretrained model!
In ver 2.2, it seems that I cannot load this pretrained D_0.pth model in the beginning of my training:
PytorchStreamReader failed reading zip archive: failed finding central directory
and the audio quality of the result of the training is worse than 2.1.
I simply cannot load D_0.pth by simple code:

import torch
model = torch.load("D_0.pth", map_location="cpu")

gives error

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Users\myname\Documents\github\Bert-VITS2\venv\lib\site-packages\torch\serialization.py", line 993, in load
    with _open_zipfile_reader(opened_file) as opened_zipfile:
  File "C:\Users\myname\Documents\github\Bert-VITS2\venv\lib\site-packages\torch\serialization.py", line 447, in __init__
    super().__init__(torch._C.PyTorchFileReader(name_or_buffer))
RuntimeError: PytorchStreamReader failed reading zip archive: failed finding central directory

Yes we found that, will fix it asap

Repaired weight is uploaded

Thanks, fixed!

litagin changed discussion status to closed

Sign up or log in to comment