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
SystemError: unknown opcode while running model_from_json(open("facenet_model.json", "r").read()) #4
Comments
This is a common issue. Incompatible versions causes this. Please modify your environment as same as mine. My environment information is dumped below. Please inform me when you try this. (tensorflow) C:\Users\IS96273>python --version (tensorflow) C:\Users\IS96273>python
|
@serengil Could you kindly share your .py file for the facenet model? This way we can adapt it for python 3.6. |
Notebook: https://github.com/serengil/tensorflow-101/blob/master/python/facenet.ipynb Additionally, the following environment will work. C:>python --version (tensorflow) C:>python
|
@serengil thank you for your response, but I might have mislead you. I meant to ask for the actual facenet model construction in python code because I like others couldn’t load the model json with python 3.6. One workaround is obviously downgrade my environment to 3.5 to match yours. But If you could share the original python code then it should be python version agnostic and might help your effort in this repo to continue helping people far into the future, not being constrained by the python version. If I understand correctly the facenet model is derived from https://github.com/davidsandberg/facenet. If we try to compile that model into json will it work with the weights you shared above? If so do you know which version of the model I should use to match the weights given David published a couple models? |
@alphabt sorry for the misunderstanding. I pushed the reference model here: https://github.com/serengil/tensorflow-101/blob/master/model/inception_resnet_v1.py All you need is illustrated below
I hope this helps you. Please respond if it works... |
@serengil Yes that's what I was looking for and it works with python 3.6 now. Thank you very much! |
@alphabt , Hi, can you share your .json file for python3.6 ? I meet the same problem with you. But I can not resolve it. Thank you very much! |
hello everyone, |
Hi Sefik,
first of all, thanks for your work.
Unfortunately, I get this error when I try to run your model, in particular command "model from jason":
I have python 3.6, tensorflow 1.12.0 and keras 2.2.4.
What could be the issue?
P.S. I tried to leave a comment on the related post on your site but I keep getting mistaken for a Bot.
The text was updated successfully, but these errors were encountered: