nyoki-mtl / keras-facenet

Facenet implementation by Keras2

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unable to load pre-trained model

ayushmodi-038 opened this issue · comments

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

ValueError: bad marshal data (unknown type code)

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

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

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