Python运行出错

(1)ValueError: You are trying to load a weight file containing 6 layers into a model with 5 layers.

解决方法:原先为model.load_weights('./0db.h5')

改为  model.load_weights('./0db.h5',by_name=True)

(2)

猜你喜欢

转载自www.cnblogs.com/JadeZhao/p/11287505.html