You are trying to load a weight file containing 12 layers into a model with

跑神经网络程序的时候有些错误真的有点莫名其妙emm
有的时候啥都没动,重跑一遍就出新错误。这时候把这个错误一搁,过上几天就好了emmm

今天遇上的错误是:
You are trying to load a weight file containing 12 layers into a model with

model.load_weights("./best/AlexNet_0.01_32_200-0.93.hdf5")语句放到model后面不行,放到compile后面不行,随便试最后一次放到model.fit语句后反而就可以了不报错了hhhhh

真神奇/摊手

猜你喜欢

转载自blog.csdn.net/qq_45832958/article/details/112604144