AttributeError: ‘str‘ object has no attribute ‘decode‘
报错语句:model = tf.keras.models.load_model('xxxx_classifier_model.h5')
解决方案
- 降级h5py
pip3 install h5py==2.10.0

AttributeError: ‘str‘ object has no attribute ‘decode‘
报错语句:model = tf.keras.models.load_model('xxxx_classifier_model.h5')
解决方案
pip3 install h5py==2.10.0