Face Recognition - Problem loading model.json (version of python?)

Like all the previous assignments, I tarballed the files and ran them on my python ide (BTW, need a trick for picking up the symbolic links in the tar command)

Anyway, I noticed it would throw an exception in the line
model = model_from_json(loaded_model_json)

I inspected the JSON in loaded_model_json and it looked fine… looks like the deserialize method in model_from_json is throwing:

bad marshal data (unknown type code)

I’m running Python 64 3.8.10 on Windows 10 and all dependencies were recently installed with PIP.

Do I have a version mismatch? If so, what is the correct version to make this work, or another place to get a correct JSON file (visually inspected the JSON file and it looks fine )

We only provide support for assignments in provided lab environments. You can have a version or dependency mismatch, or your files might be broken, or you might have another problem :slight_smile:

I think you have a Python version mismatch. Make sure you run the exact same Python version on your local machine as we do in the cloud.

Thanks… trying to figure out the version of python / keras in the cloud that is used -

1 Like

i have the same problem, did you resolve it?