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

Unable to load pre-trained model #24

Open
ayushmodi-038 opened this issue Dec 22, 2020 · 3 comments
Open

Unable to load pre-trained model #24

ayushmodi-038 opened this issue Dec 22, 2020 · 3 comments

Comments

@ayushmodi-038
Copy link

Unable to load the pre-trained model shared using Google Drive.
Got the following error.

ValueError: bad marshal data (unknown type code)

@rishabgit
Copy link

Hi @ayushmodi-038 ! You'll have to rebuild the model and load the weights instead.

@PushpakBhoge
Copy link

To anyone coming here,
If you are using the latest version of TensorFlow or Keras you will get the 'bad Mashal data' error it may be due to since integration of Keras as a backend into TensorFlow not sure. I have worked around this and converted the model which can be used with TensorFlow 2.xx
I have converted the model and wrote a program that uses those converted weights. The repo is this https://github.com/PushpakBhoge/Face_Recognition_TF process of conversion and code to load them weights is given in the readme.MD

@MadhuOruganti
Copy link

MadhuOruganti commented Aug 22, 2022

Model link is not working, Please help out to get the model file..
Thank you

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

4 participants