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

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? #3

Open
LIZ-dandan opened this issue Aug 15, 2022 · 1 comment

Comments

@LIZ-dandan
Copy link

when i run tfmodel_2_pymodel.py, pycharm told me OSError: 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?
how can i solve this promblem?

@LIZ-dandan
Copy link
Author

I fixed the problem myself by unzip the pretrain/tf/albert_base_zh.zip to pretrain/tf/albert_base_zh, and replace the origin path with "pretrain/tf/albert_base_zh/"
In another words, the tf directory is organized like this:
tf_dir

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