musicseg_deepemb icon indicating copy to clipboard operation
musicseg_deepemb copied to clipboard

keras load_model error. SystemError: unknown opcode

Open marson666 opened this issue 2 years ago • 4 comments

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 ~

marson666 avatar May 11 '22 10:05 marson666

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.

urinieto avatar May 13 '22 22:05 urinieto

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).

urinieto avatar Oct 10 '22 22:10 urinieto

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 avatar Feb 13 '23 12:02 vivienseguy

@vivienseguy did using python 3.8 and tentensorflow 2.7.0 work?

NikhilManjunath avatar Mar 05 '24 16:03 NikhilManjunath