origami icon indicating copy to clipboard operation
origami copied to clipboard

h5py encoding problem with pretrained models

Open bertsky opened this issue 4 years ago • 1 comments

In a fresh installation with the current software ecosystem, I end up with the well-known issue

AttributeError: 'str' object has no attribute 'decode'

when loading the models. Essentially, older Keras/Tensorflow models cannot be loaded by h5py>2.10 (but are nevertheless dependent on that). Add pip's stupidity, and you can at least downgrade h5py manually, if that requirement comes last in the chain. ~~But there's an additional glitch because h5py 2.1 does not compile with more recent Numpy anymore.~~

EDIT: confused 2.10 with 2.1, sry

bertsky avatar Nov 25 '21 12:11 bertsky

where you able to solve the issue? I am having the same problem and can't solve even if I have the correct versions. Nevermind was solved using conda install 'h5py==2.10.0' in the anaconda env.

Zathiron avatar Jan 07 '22 17:01 Zathiron