keras-team / keras-contrib

Keras community contributions
MIT License
1.59k stars 653 forks source link

Can't load pickle file (Keras Model) after deployment on the azure server #555

Open HGamalElDin opened 3 years ago

HGamalElDin commented 3 years ago

Describe the bug I wanted to make the keras model pickable, so i used the solution from this issue: #34697 (comment)

it solved my problem perfectly in the local environment, but when I build the project from the docker container on Azure Server and while loading the pickle file it gives,

Can't get attribute 'unpack' on <module 'main' from '/opt/python/3.7.9/bin/gunicorn'>

it's like the gunicorn web server can't interpret or see the "unpack" function, I don't know exactly what's going on in the gunicorn server, any help please!

Environment: