记录今天在加载深度学习所训练生成的模型model时,遇到的一个bug: model_config = json.loads(model_config.decode('utf-8') AttributeError: 'str' object has no attribute 'decode' 解决方式,运行下面的命令即可解决,亲测有效! pip install tensorflow h5py==2.10.0