An advanced singing voice synthesis system with high fidelity, expressiveness, controllability and flexibility based on DiffSinger: Singing Voice Synthesis via Shallow Diffusion Mechanism
Apache License 2.0
2.73k
stars
288
forks
source link
Export Acoustic Model Error:"size mismatch for fs2.txt_embed.weight" #185
python : 3.8.19
torch ver : 1.13.1 (Now) / 2.2.2+cu118 (Before)
DiffSinger ver : 76afe57 (latest commit)
I get this error when I export acoustic model. And I trained the model on a cloud server, and then transferred the checkpoint files to export locally.
Traceback
(most recent call last):
File "scripts/export.py", line 294, in <module>
main()
File "c:\Users\asus\anaconda3\envs\sofa_gui\lib\site-packages\click\core.py", line 1157, in __call__
return self.main(*args, **kwargs)
File "c:\Users\asus\anaconda3\envs\sofa_gui\lib\site-packages\click\core.py", line 1078, in main
rv = self.invoke(ctx)
File "c:\Users\asus\anaconda3\envs\sofa_gui\lib\site-packages\click\core.py", line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "c:\Users\asus\anaconda3\envs\sofa_gui\lib\site-packages\click\core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "c:\Users\asus\anaconda3\envs\sofa_gui\lib\site-packages\click\core.py", line 783, in invoke
return __callback(*args, **kwargs)
File "scripts/export.py", line 137, in acoustic
exporter = DiffSingerAcousticExporter(
File "D:\niro-workspace\diffsinger\DiffSinger\deployment\exporters\acoustic_exporter.py", line 36, in __init__
self.model = self.build_model()
File "D:\niro-workspace\diffsinger\DiffSinger\deployment\exporters\acoustic_exporter.py", line 94, in build_model
load_ckpt(model, hparams['work_dir'], ckpt_steps=self.ckpt_steps,
File "D:\niro-workspace\diffsinger\DiffSinger\utils\__init__.py", line 216, in load_ckpt
cur_model.load_state_dict(state_dict, strict=strict)
File "c:\Users\asus\anaconda3\envs\sofa_gui\lib\site-packages\torch\nn\modules\module.py", line 1671, in load_state_dict
raise RuntimeError('Error(s) in loading state_dict for {}:\n\t{}'.format(
RuntimeError: Error(s) in loading state_dict for DiffSingerAcousticONNX:
size mismatch for fs2.txt_embed.weight: copying a param with shape torch.Size([45, 256]) from checkpoint, the shape in current model is torch.Size([47, 256]).
python
: 3.8.19torch ver
: 1.13.1 (Now) / 2.2.2+cu118 (Before)DiffSinger ver
: 76afe57 (latest commit)I get this error when I export acoustic model. And I trained the model on a cloud server, and then transferred the checkpoint files to export locally.
Traceback
acoustic config.yaml