when checking input expected input_image_meta to have shape (None,14)but got array with shape (1,15)

ValueError: Error when checking input: expected input_image_meta to have shape (None, 14) but got array with shape (1, 15)

跑maskrcnn 时无论是什么框架,目前比较新的代码,都会默认在类别里加背景,不需要自己单独增加,遇到这个错误有两种可能

  1. 代码比较老,代码里的类别数 = 你标注的类别 + 1 (这个1是背景)

  2. 在1已经改了的情况下还报错,那就还有一种较小的可能,就是比如你的实际类别是5类,而验证集里面实际并没有5个类,你需要补充一个带有缺失那一类的样本

猜你喜欢

转载自blog.csdn.net/qq_20373723/article/details/114692976
今日推荐