philipperemy / deep-speaker

Deep Speaker: an End-to-End Neural Speaker Embedding System.
MIT License
905 stars 241 forks source link

Cannot load pretrained weights #71

Closed yuvaraj91 closed 3 years ago

yuvaraj91 commented 3 years ago

I am trying to load the pretrained weights model.m.load_weights('ResCNN_triplet_training_checkpoint_265.h5', by_name=True)

but i get this error: AttributeError: 'str' object has no attribute 'decode'. I have installed the same versions for all libraries, and tried some workarounds after googling. Anyone faced and managed to fix this issue?

philipperemy commented 3 years ago

@Yuvaraj91 it's a regression in h5py: https://github.com/tensorflow/tensorflow/issues/44467. Solution is to run pip install 'h5py < 3.0.0'. I updated the requirements.