PSPNet-Keras-tensorflow icon indicating copy to clipboard operation
PSPNet-Keras-tensorflow copied to clipboard

Trained models not working in Python 3.6+

Open yasharmaster opened this issue 6 years ago • 6 comments

Loading model files gives error SystemError: unknown opcode. This is the issue with Keras. Please provide the models trained on python 3.6.

yasharmaster avatar Apr 12 '19 11:04 yasharmaster

The models can be loaded in the version of python used while creating them. Keras has this issue. Try downgrading python 3.6 to python 3.5, it worked for me.

SidShenoy avatar Apr 24 '19 07:04 SidShenoy

Yeah it worked on my local machine after downgrading the local version of python. But in Google Colab there is no way to downgrade Python 3 version, so it cannot be used there,

yasharmaster avatar Apr 24 '19 09:04 yasharmaster

Just convert the npy weights with your desired keras/python Version. You’ll be fine.

jmtatsch avatar Apr 24 '19 09:04 jmtatsch

Yeah it worked on my local machine after downgrading the local version of python. But in Google Colab there is no way to downgrade Python 3 version, so it cannot be used there,

Totally right, so I am going to train it on ADE20K again🤯

CinKKKyo avatar Apr 27 '19 04:04 CinKKKyo

@jmtatsch What npy weights? I thought we only used keras weights

ktnguyen2 avatar May 07 '19 18:05 ktnguyen2

just search the issues you may find something.

jmtatsch avatar May 07 '19 18:05 jmtatsch