musicseg_deepemb
musicseg_deepemb copied to clipboard
keras load_model error. SystemError: unknown opcode
Hi, Thanks for your great work. When i'm trying to run the repo, it occurs the error: keras load_model error. SystemError: unknown opcode What's the python version this repo used? Look forward to your reply ~
We used keras 2.7.0, and Python 3.8.10. Maybe we should add this in the setup.py
or create an environment.yml
file so that users can more easily replicate our environment.
Thanks for reporting, and let us know if using these versions fixes your problem.
I have merged a PR with a new set of instructions and dependencies (https://github.com/justinsalamon/musicseg_deepemb/pull/5). Please, give it a try (make sure you're using Keras 2.6 and Python 3.7, as indicated by the new instructions).
Sadly, I am also having an error with load_model of deepsim ("ValueError: bad marshal data (unknown type code)". It seems that this is linked to some Lambda layer in the .h5 config. I tried my best but couldn't use Keras 2.6 and Python 3.7 on my Mac M1, so I did with python 3.8 and tensorflow 2.7.0 instead.
@vivienseguy did using python 3.8 and tentensorflow 2.7.0 work?