ValueError: You are trying to load a weight file containing 0 layers into a model with 16 layers.
ValueError: You are trying to load a weight file containing 0 layers into a model with 16 layers.
在使用keras进行VGG-16模型的导入,加载训练好的权重时,出现以上错误
则是因为没有加上 by_name=Ture
if weights_path:
model.lo...
原创
2019-04-17 10:24:25 ·
4306 阅读 ·
2 评论