在加载训练之后的hdf5模型时,‘str‘ object has no attribute ‘decode‘|已解决
在加载训练之后的hdf5模型时,‘str’ object has no attribute ‘decode’|已解决报错信息如下:line 176, in load_model_from_hdf5 model_config = json.loads(model_config.decode('utf-8'))AttributeError: 'str' object has no attribute 'decode'解决办法:将h5py==2.10.0版本改为:pip install t