ValueError: You are trying to load a weight file containing 4 layers into a model with 0 layers.
ValueError: You are trying to load a weight file containing 4 layers into a model with 0 layers.
已经训练好模型,并保存为Simcnn.h5文件,模型重新编译并调用的时候报错。
出错代码:
def model_pre(self):
if os.path.exists("ckpt/Simcnn/checkpoint/Simcnn.h5"):
Simcnn.model.loa
原创
2020-09-29 15:39:27 ·
795 阅读 ·
0 评论