PSPNet-Keras-tensorflow
PSPNet-Keras-tensorflow copied to clipboard
SystemError: unknown opcode
Namespace(flip=True, glob_path=None, id='0', input_path='example_images/cityscapes.png', input_size=500, model='pspnet50_ade20k', output_path='example_results/cityscapes.jpg', weights=None)
weights/keras/pspnet50_ade20k.json
Keras model & weights found, loading...
XXX lineno: 18, opcode: 0
Traceback (most recent call last):
File "/home/jiurui/temp/PSPNet-Keras-tensorflow-master/pspnet.py", line 186, in
I have this error too. I am on CentosOS with keras 2.0.6, tensorflow 1.11, and python 3.6
I also encounter this error, has anyone found out what goes wrong yet? Could it be a Python / TF / Keras version error?
I have this error too. Anyone solved this yet?
I fixed it by using python 3.5. Both 2.7 and 3.6 didn't work for me.
I also fixed it by using python 3.5
Thanks! that worked
Trying dig info how to workaround to deal with this on Python3.6+
Currently found, which states that this is Keras/TF/Theano error when loading .h5 models with Python 3.6+: https://github.com/keras-team/keras/issues/9595 But WIP
Okay, found old discussion here: https://github.com/Vladkryvoruchko/PSPNet-Keras-tensorflow/issues/25#issuecomment-373985500
Apparently this issue is caused by the marshal serial format having changed a bit between Python 3.5 and 3.6 as discovered in keras-team/keras#9595 . Converting the weights from numpy with python 3.6 should work around it.