环境:
WIN10
Bert-VITS2.4
问题描述:
python bert_gen.py报错
Unable to load weights from pytorch checkpoint file for ‘./bert/Erlangshen-MegatronBert-1.3B-Chinese\pytorch_model.bin’ at ‘./bert/Erlangshen-MegatronBert-1.3B-Chinese\pytorch_model.bin’. If you tried to load a PyTorch model from a TF 2.0 checkpoint, please set from_tf=True.
解决方案:
1.下载有2.35G Erlangshen-MegatronBert-1.3B-Chinese模型
2.直接下载完1个G
3.感觉大小不对
4.重新点击进去再下载
替换原来的文件
5.再次运行python bert_gen.py 正常