Keras加载模型时报错:AttributeError: 'str' object has no attribute 'decode'

from keras.models import *
g_model = load_model('RVGAN/global_model_000023.h5')

 

 

 

解决方法:
pip install h5py==2.10

posted @ 2021-11-20 00:26  七三七3  阅读(612)  评论(0编辑  收藏  举报