Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于不能加载bert模型的问题 #10

Open
GuanYingxuan opened this issue Apr 1, 2022 · 1 comment
Open

关于不能加载bert模型的问题 #10

GuanYingxuan opened this issue Apr 1, 2022 · 1 comment

Comments

@GuanYingxuan
Copy link

您好!我在进行模型训练时遇到了这个问题:
tensorflow.python.framework.errors_impl.DataLossError: Unable to open table file C:\Users\Desktop\ner_zh\bert_ner\bert_ner\chinese_L-12_H-768_A-12\bert_model.ckpt: Data loss: not an sstable (bad magic number): perhaps your file is in a different file format and you need to use a different restore operator?
请问该如何正确加载模型呢?试过将"bert_model.ckpt.data-00000-of-00001"的后缀删除但并不好用。期待您的回复!

@GuanYingxuan
Copy link
Author

已解决,将网盘链接中的文件chinese_L-12_H-768_A-12\bert_model.ckpt(1).index改名为bert_model.ckpt.index即可

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant